Removing desktop pool entitlements

The Remove-PoolEntitlement command uses the same format as the Add-PoolEntitlement command; however, if you are removing the last entitlements from the desktop pool, you must add the -ForceRemove $true option for the command to succeed. This prevents you from accidentally removing all entitlements from a desktop pool. The following code shows how this can be correctly implemented:

Remove-PoolEntitlement -Pool_id “EngineeringLC1” -sid (Get-User -Name “Engineering_Horizon_Users”).sid -ForceRemove $true

The Add-PoolEntitlement and Remove-PoolEntitlement commands require you to specify the user or group AD system identifier (SID) in order to add or remove desktop pool entitlements. For this, use the Get-User command within the Remove-PoolEntitlement command. Despite the name, the Get-User command is used to obtain both AD users and groups.

..................Content has been hidden....................

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