Table of contents
TLS
TOC
Collapse the table of content
Expand the table of content

Set-RDPersonalVirtualDesktopAssignment

Last Updated: 4/3/2017

SYNOPSIS

Creates an association between a personal virtual desktop and a user account.

SYNTAX

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

DESCRIPTION

The Set-RDPersonalVirtualDesktopAssignment cmdlet creates an association between a personal virtual desktop and a user account.

EXAMPLES

Example 1: Create an association between a user and a personal virtual desktop

PS C:\>Set-RDPersonalVirtualDesktopAssignment -CollectionName "Virtual Desktop Collection" -User "CONTOSO\sarahjones" -PersonalVirtualDesktop "PVD-21"

This command associates a user with a personal virtual desktop.

PARAMETERS

-CollectionName

Specifies the name of a personal virtual desktop collection.

Type: String
Parameter Sets: (All)
Aliases: 

Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-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
Parameter Sets: (All)
Aliases: 

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

-User

Specifies the user account to associate with the personal virtual desktop, in DOMAIN\User format.

Type: String
Parameter Sets: (All)
Aliases: 

Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
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
Parameter Sets: (All)
Aliases: 

Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

Null

NOTES

Export-RDPersonalVirtualDesktopAssignment

Get-RDPersonalVirtualDesktopAssignment

Import-RDPersonalVirtualDesktopAssignment

Remove-RDPersonalVirtualDesktopAssignment

© 2017 Microsoft