This is the built-in help made by Microsoft for the command 'Set-RDRemoteDesktop', in PowerShell version 5 - as retrieved from
Windows version 'Microsoft Windows Server 2012 R2 Standard' PowerShell help files on 2016-06-23.
For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.
Changes whether to publish a Remote Desktop to a collection.
Set-RDRemoteDesktop [-CollectionName] <String> [-ShowInWebAccess] <Boolean> [-ConnectionBroker <String>] [-Force] [-Confirm] [-WhatIf] [<CommonParameters>]
The Set-RDRemoteDesktop cmdlet changes whether to publish a Remote Desktop connection to a collection.
When you publish a Remote Desktop connection, the Remote Desktop Web Access (RDWebAccess) server displays the Remote Desktop connection for the collection defined by the
CollectionName parameter. RemoteApp and Desktop Connections that the user subscribes to also display published Remote Desktop connections.
You can publish either RemoteApps or a Remote Desktop connection to a collection, but not both. Therefore, if you publish a Remote Desktop connection by using this cmdlet,
it unpublishes any published RemoteApps.
Online Version: http://go.microsoft.com/fwlink/?LinkId=294264
Example 1: Publish a Remote Desktop
PS C:\> Set-RDRemoteDesktop -CollectionName "Session Collection" -ShowInWebAccess $True
This command publishes a Remote Desktop to the collection named Session Collection. The ShowInWebAccess parameter has a value of $True, therefore the collection appears in RD
Web Access. RemoteApp and Desktop Connections that the user subscribes to also display the collection.