Entitling a desktop pool
Entitling is the act of granting AD users or groups access to the Horizon View pools. In this recipe, we will demonstrate how to either add or remove user and group's Horizon View pool entitlements.
How to do it…
Perform the following steps to entitle a desktop pool:
The following
Add-PoolEntitlement
command will entitle theFinance_View_Users
group to theFinanceLC1
desktop pool:Add-PoolEntitlement -Pool_id FinanceLC1 -sid (Get-User -Name "Finance_View_Users").sid
To entitle individual users, simply provide the first and last name of the user:
Add-PoolEntitlement -Pool_id FinanceLC1 -sid (Get-User -Name "Erik Lensherr").sid
Note
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-PoolEntitlement
command uses the same format as theAdd-PoolEntitlement
command; however, if you are removing the last entitlements...