PowerShell Logo Small

Get-RDVirtualDesktop



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.

SYNOPSIS

Gets a list of virtual desktops in the remote desktop deployment.

SYNTAX


Get-RDVirtualDesktop [[-CollectionName] <String[]>] [-ConnectionBroker <String>] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Get-RDVirtualDesktop cmdlet gets a list of virtual desktops in the remote desktop deployment.



<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/?LinkId=294225
Move-RDVirtualDesktop
Get-RDVirtualDesktopCollection

REMARKS

<

Examples


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."