Mastering Windows Server 2016 Hyper-V

(Romina) #1

-ConnectionBroker $ConnectionBroker -SessionHost $RDSH1,$RDSH2
-PersonalUnmanaged -GrantAdministrativePrivilege


#Map the users to RDSH instances
Set-RDPersonalSessionDesktopAssignment -CollectionName $CollectionName -ConnectionBroker $ConnectionBroker -User $User1 -Name $RDSH1 Set-RDPersonalSessionDesktopAssignment -CollectionName $CollectionName
-ConnectionBroker $ConnectionBroker -User $User2 -Name $RDSH2


Get-RDPersonalSessionDesktopAssignment -CollectionName $CollectionName


Following is an example execution.


PS C:\ > Add‐RDServer ‐Server $RDSH1 ‐Role "RDS‐RD‐Server"
-ConnectionBroker $ConnectionBroker
PS C:\ > Add‐RDServer ‐Server $RDSH2 ‐Role "RDS‐RD‐Server"
-ConnectionBroker $ConnectionBroker


Server Roles
——— ——-
savdalrdsh01.savilltech.net {RDS-RD-Server}
savdalrdsh02.savilltech.net {RDS-RD-Server}


PS C:> New‐RDSessionCollection ‐CollectionName $CollectionName
-ConnectionBroker $ConnectionBroker -SessionHost $RDSH1,$RDSH2
-PersonalUnmanaged -GrantAdministrativePrivilege


CollectionName Size ResourceType CollectionType
CollectionDescription
——————— ———————— ——————— ——————————-
PDSCollection 2 Remote Desktop PersonalUnmanaged


PS C:> Set‐RDPersonalSessionDesktopAssignment
-CollectionName $CollectionName -ConnectionBroker $ConnectionBroker -User $User1 -Name $RDSH1 PS C:\> Set‐RDPersonalSessionDesktopAssignment -CollectionName $CollectionName
-ConnectionBroker $ConnectionBroker -User $User2 -Name $RDSH2


PS C:> Get‐RDPersonalSessionDesktopAssignment ‐CollectionName
$CollectionName


CollectionName DesktopName User
——————— —————- ——
PDSCollection SAVDALRDSH01.SAVILLTECH.NET SAVILLTECH\john
PDSCollection SAVDALRDSH02.SAVILLTECH.NET SAVILLTECH\bond

Free download pdf