Overview
Requirements
a) Server 2012 R2 with Remote Desktop Session Host role installed
b) Active Office 365 plan/subscription
c) Office Deployment Tool
d) Volume Licensing configured within the domain:
1 RDS Client Access License, either per-user or device and 1 Office 365 license per access device.
If Software Assurance has been purchased, this allows for Roaming User Rights and access from qualified 3rd party devices.
Or d-2) An Office 365 ProPlus subscription with Shared Computer Activation enabled
Processes
1. Run the Office Deployment Tool setup executable on the Remote Desktop Services Host server and run the extracted setup.exe from the cmd line with the following parameters after the configuration XML file has been edited as outlined in step 2. A directory labeled "Office" will be automatically created.
Note: There is no progress indicator during the download process.
setup.exe /download configuration.xml
<Add SourcePath="YourFileShare"> allows for the configuring of where to download Office install files.
<Add DownloadPath="YourFileShare"> can alternatively be used to configure a local download source if Office install files are already hosted on a file share.
2. Modify, add or remove other configuration file options as desired. Both configuration file parameter options and Product IDs can be accessed from the link listed under References.
Example configuration.xml file for Office 365 Business which only downloads and installs Outlook.
Note: Office automatically activates by default. It is best practice to not set the AutoActivate property.
<Configuration> <Add SourcePath="\\Hostname\FileShare" OfficeClientEdition="32" Channel="Current"> <Product ID="O365BusinessRetail"> <Language ID="en-us" /> <ExcludeApp ID="Access" /> <ExcludeApp ID="Excel" /> <ExcludeApp ID="InfoPath" /> <ExcludeApp ID="OneDrive" /> <ExcludeApp ID="Groove" /> <ExcludeApp ID="OneNote" /> <ExcludeApp ID="PowerPoint" /> <ExcludeApp ID="Project" /> <ExcludeApp ID="Publisher" /> <ExcludeApp ID="SharePointDesigner" /> <ExcludeApp ID="Lync" /> <ExcludeApp ID="Visio" /> <ExcludeApp ID="Word" /> </Product> </Add> <Updates Enabled="TRUE" Channel="Current" /> <Display Level="None" AcceptEULA="TRUE" /> </Configuration>
<Property Name="SharedComputerLicensing" Value="1" /> is a required property when installing Office 365 ProPlus on a shared computer or server with the Remote Desktop Services role installed and the subscription must support Shared Computer Activiation. Office 365 Business requires Volume Licensed installation media.
Error when Office 365 subscription does not support Shared Computer Activation

Error when non-Volume Licensed Office media is used for installation

3. Publish Outlook in Remote Desktop Services
4. Publish Outlook in Workspot Control
References
Office 2016 Deployment Tool
Office 2013 Deployment Tool
Product IDs that are supported by the Office Deployment Tool for Click-to-Run
Configuration options for the Office Deployment Tool
Deploy Office 365 ProPlus by using Remote Desktop Services
Licensing of Microsoft desktop application software for use with Windows Server Remote Desktop Services