Entitling or unentitling an individual desktop

Entitling an individual desktop is similar to entitling a desktop pool, except that, in this case, we need both the user SID and the machine ID. For the following example command, we will nest two commands, Get-DesktopVM and Get-User, within the two different UserOwnership commands:

Update-UserOwnership -Machine_id (Get-DesktopVM -Name “HorLC0001”).machine_id -Sid (Get-User -Name “Jason Ventresco”).sid

The Get-User command accepts wildcards, but be careful while using them, as the wrong user might be returned. If in doubt, use the Get-User command by itself to verify that you are selecting the correct user.

The Remove-UserOwnership command requires only the desktop machine ID, as shown in the following code:

Remove-UserOwnership -Machine_id (Get-DesktopVM -Name “HorLC0001”).machine_id
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.145.186.6