$srcRemotePC = '
DomainName\65TELW19'
$destRemotePC = 'DomainName\65TELW20'
Get-BrokerUser -PrivateDesktopUid (get-BrokerPrivateDesktop -MachineName $srcRemotePC ).Uid | | %{ if($_.Upn -ne "") {
Add-BrokerUser -Machine $destRemotePC -Name $_.Upn
}}
My Contribution / Reference / Spare Time
$srcRemotePC = '
DomainName\65TELW19'
$destRemotePC = 'DomainName\65TELW20'
Get-BrokerUser -PrivateDesktopUid (get-BrokerPrivateDesktop -MachineName $srcRemotePC ).Uid | | %{ if($_.Upn -ne "") {
Add-BrokerUser -Machine $destRemotePC -Name $_.Upn
}}