Open houk001 opened 4 years ago
Hi,
The function expects at least one of “User” or “ResourceName” parameter. The below example script works:
$appEntitlements = Get-HVEntitlement -ResourceType Application -ResourceName 'AppPool' Write-Host 'App entitlements:'; foreach ($info in $appEntitlements) { Write-Host $info.id.id; }
Then please remove from get-help Get-HVEntitlement -examples a example of usage with only -ResourceType. With old View get-entitlement there is a option to get all of entitlements with pool list, This is very useful to export all of users or group with one command to other systems.
On Example there is option to show Entitlements per Application When i run Get-HVEntitlement -ResourceType Desktop or Get-HVEntitlement -ResourceType Application i get error
Get-HVQueryFilter : Cannot bind argument to parameter 'Filters' because it is an empty array. At C:\Program Files\WindowsPowerShell\Modules\VMware.Hv.Helper\VMware.HV.Helper.psm1:8457 char:54 $AndFilter = Get-HVQueryFilter -And -Filters $AndFilter
but when i run not existing resource type there is a info about proper types
Get-HVEntitlement -ResourceType App Get-HVEntitlement : Cannot validate argument on parameter 'ResourceType'. The argument "App" does not belong to th e set "Application;Desktop;GlobalApplicationEntitlement;GlobalEntitlement;URLRedirection" specified by the ValidateSet attribute. Supply an argument that is in the set and then try the command again. At line:1 char:33 Get-HVEntitlement -ResourceType Applicat