This is the built-in help made by Microsoft for the command 'Get-RDVirtualDesktop', 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.
Gets a list of virtual desktops in the remote desktop deployment.
Get-RDVirtualDesktop [[-CollectionName] <String[]>] [-ConnectionBroker <String>] [<CommonParameters>]
The Get-RDVirtualDesktop cmdlet gets a list of virtual desktops in the remote desktop deployment.
<
Online Version: http://go.microsoft.com/fwlink/?LinkId=294225
Move-RDVirtualDesktop
Get-RDVirtualDesktopCollection
<
Example 1: Retrieve a list of Virtual Desktops
PS C:\> Get-RDVirtualDesktop -ConnectionBroker "rdcb.contoso.com" | sort-object VirtualDesktopName
This command lists virtual desktops in the collections associated with the connection broker server named "rdcb.contoso.com." The command uses the pipeline operator to send
the results to the Sort-Object cmdlet, which sorts the objects in order of the VirtualDesktopName property.
Example 2: Retrieve a list of Virtual Desktops in a Collection
PS C:\> Get-RDVirtualDesktop -ConnectionBroker "rdcb.contoso.com" -CollectionName @("Virtual Desktop pool")
This command lists virtual desktops in the collection named "Virtual Desktop pool" that is associated with the connection broker server named "rdcb.contoso.com."