You can use View PowerCLI cmdlets to manage desktop entitlements.

Table 1. Examples of Common Desktop Entitlement Management Tasks
Task Example View PowerCLI cmdlet Syntax
Entitle a user in a specific domain to a specific desktop pool Get-User -name "mydom\fred" | Add-PoolEntitlement -pool_id dtop-12
Entitle a user to all desktop pools Get-Pool | Add-PoolEntitlement -sid (Get-User -name "usr1").sid
Get information about all the users who are entitled to use a specific desktop pool Get-PoolEntitlement -pool_id dtop-1
Get information about all the users who are entitled to use desktop pools that have IDs with a specific prefix Get-Pool -pool_id dtpool-* | Get-PoolEntitlement
Remove an entitlement to use a specific desktop pool Get-PoolEntitlement -pool_id dtpool-11 | Remove-PoolEntitlement
Remote all entitlements Get-PoolEntitlement | Remove-PoolEntitlement -forceRemove $true
Note: If you do not specify the -forceRemove parameter, you can use this command to obtain information about the entitlements to be removed.