< Back
Set-RDPersonalVirtualDesktopAssignment
Post
NAME Set-RDPersonalVirtualDesktopAssignment
SYNOPSIS
Creates an association between a personal virtual desktop and a user account.
SYNTAX
Set-RDPersonalVirtualDesktopAssignment [-CollectionName] <String> [-ConnectionBroker <String>] -User <String> -VirtualDesktopName <String>
[<CommonParameters>]
DESCRIPTION
The Set-RDPersonalVirtualDesktopAssignment cmdlet creates an association between a personal virtual desktop and a user account.
PARAMETERS
-CollectionName <String>
Specifies the name of a personal virtual desktop collection.
Required? true
Position? 1
Default value none
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-ConnectionBroker [<String>]
Specifies the Remote Desktop Connection Broker (RDConnection 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.
Required? false
Position? named
Default value none
Accept pipeline input? false
Accept wildcard characters? false
-User <String>
Specifies the user account to associate with the personal virtual desktop, in DOMAIN\\User format.
Required? true
Position? named
Default value none
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-VirtualDesktopName <String>
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.
Required? true
Position? named
Default value none
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
Null
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.
RELATED LINKS
Online Version: http://go.microsoft.com/fwlink/?LinkId=294261
Export-RDPersonalVirtualDesktopAssignment
Get-RDPersonalVirtualDesktopAssignment
Import-RDPersonalVirtualDesktopAssignment
Remove-RDPersonalVirtualDesktopAssignment
SYNOPSIS
Creates an association between a personal virtual desktop and a user account.
SYNTAX
Set-RDPersonalVirtualDesktopAssignment [-CollectionName] <String> [-ConnectionBroker <String>] -User <String> -VirtualDesktopName <String>
[<CommonParameters>]
DESCRIPTION
The Set-RDPersonalVirtualDesktopAssignment cmdlet creates an association between a personal virtual desktop and a user account.
PARAMETERS
-CollectionName <String>
Specifies the name of a personal virtual desktop collection.
Required? true
Position? 1
Default value none
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-ConnectionBroker [<String>]
Specifies the Remote Desktop Connection Broker (RDConnection 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.
Required? false
Position? named
Default value none
Accept pipeline input? false
Accept wildcard characters? false
-User <String>
Specifies the user account to associate with the personal virtual desktop, in DOMAIN\\User format.
Required? true
Position? named
Default value none
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-VirtualDesktopName <String>
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.
Required? true
Position? named
Default value none
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
Null
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.
RELATED LINKS
Online Version: http://go.microsoft.com/fwlink/?LinkId=294261
Export-RDPersonalVirtualDesktopAssignment
Get-RDPersonalVirtualDesktopAssignment
Import-RDPersonalVirtualDesktopAssignment
Remove-RDPersonalVirtualDesktopAssignment