The publish content feature allows you to publish document files, media files, web URLs, and other types of files from any network location. Published content is treated as an application type; therefore, application properties you configure (such as user visibility, group association, shortcut) automatically apply to the published content, and users can access content in the same way they access applications.
When you publish content, you can specify the location using address formats such as the following (examples shown in parentheses):
- HTML Web site address (http://www.citrix.com)
- Document file on a Web server (https://www.citrix.com/press/pressrelease.doc)
- Directory on an FTP server (ftp://ftp.citrix.com/code)
- Document file on an FTP server (ftp://ftp.citrix.com/code/Readme.txt)
- UNC file path (file://myServer/myShare/myFile.asf) or (\\myServer\myShare\myFile.asf)
- UNC directory path (file://myServer/myShare or \\myServer\myShare)
Publish content through the PowerShell SDK, not Studio. The published content items appear in the Applications list in Studio and can be edited in Studio. (You cannot change the command line argument or working directory application properties in Studio.)
Adding a published content application requires a minimum version 7.11 Delivery Controller.
When you add an application with the New-BrokerApplication cmdlet:
- Use PublishedContent as the application type (-ApplicationType PublishedContent).
- Use the CommandLineExecutable application property to specify the address of the published content (for example, -CommandLineExecutable http://www.citrix.com). The limit is 255 characters.
This feature requires the SDK delivered with XenApp and XenDesktop 7.11.
The following cmdlet publishes https://www.citrix.com to the Delivery Group named Content. Users will see Citrix Home Page.
New-BrokerApplication -Name"CitrixHomePage" -PublishedName -"Citrix Home Page"
-ApplicationType PublishedContent -CommandLineExecutable https://www.citrix.com
The following cmdlet publishes a path to a network share on a machine named MyFolderShare with a Word document named ReadMe.doc. Users will see the name ReadMe Document.
New-BrokerApplication -Name ReadMe -PublishedName"ReadMe Document"
-ApplicationType PublishedContent -CommandLineExecutable
\\MyFolderShare\Documents\ReadMe.doc -DesktopGroup Content