Get-RDPersonalVirtualDesktopAssignment

Retrieves a list of personal virtual desktops and associated user accounts.

Syntax

Get-RDPersonalVirtualDesktopAssignment
   [-CollectionName] <String>
   [-ConnectionBroker <String>]
   -User <String>
   [<CommonParameters>]
Get-RDPersonalVirtualDesktopAssignment
   [-CollectionName] <String>
   [-ConnectionBroker <String>]
   -VirtualDesktopName <String>
   [<CommonParameters>]

Description

The Get-RDPersonalVirtualDesktopAssignment cmdlet retrieves a list of personal virtual desktops and associated user accounts. Specify one or more user accounts to retrieve the associated personal virtual desktops, or specify one or more personal virtual desktop names to retrieve the associated user accounts.

Examples

Example1: Retrieve a list of the current associations between personal virtual desktops and users

PS C:\>Get-RDPersonalVirtualDesktopAssignment -CollectionName "Virtual Desktop Collection"

This command lists current associations between personal virtual desktops and users from the virtual desktop collection named Virtual Desktop Collection.

Required Parameters

-CollectionName

Specifies the name of a personal virtual desktop collection.

Type:String
Position:0
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-User

Specifies one or more user accounts, in DOMAIN\User format.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-VirtualDesktopName

Specifies the name of the virtual desktop. This parameter is required. The virtual desktop identified here must be a member of the collection that the CollectionName parameter specifies.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-ConnectionBroker

Specifies the Remote Desktop Connection Broker (RD Connection Broker) server for a Remote Desktop deployment. If you do not supply a value, the cmdlet uses the fully qualified domain name (FQDN) of the local computer.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Outputs

System.Object