VMware Cloud Community
hariedi
Contributor
Contributor

Get user entitled to application id using powershell

Hi All,

i am new to PowerCLI, i have task  create report script to get user entitled to spesific application  id using powershell

how i do this?

Thanks,

0 Kudos
8 Replies
LucD
Leadership
Leadership

What product are you talking about?
Can you give some more info?


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
hariedi
Contributor
Contributor

Sorry, 

the product is Horizon View 7.8

0 Kudos
hariedi
Contributor
Contributor

i like to get information like admin web horizon view(pic attached) but via powershell
0 Kudos
LucD
Leadership
Leadership

Wouter has a blog post on that, see Finding Horizon View local entitlements using PowerCLI


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
hariedi
Contributor
Contributor

Thanks Lucd,  in that post write about get application from spesific user. but my task is get user entitle from spesific application.

i try command get-hventitlement -resourcetype application but the result "Get-HVQueryFilter : Cannot bind argument to parameter 'Filters' because it is an empty array."

0 Kudos
LucD
Leadership
Leadership

Can you share the complete error message?
Including the line number.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
hariedi
Contributor
Contributor

Lucd, i have try add parameter -resourcename and its work, below detail command :

$entitleids=(Get-HVEntitlement -ResourceName 'notepad' -ResourceType Application).base

foreach ($Entityid in ($entitledids.DisplayName)) { write-host $Entityid }

Thanks

0 Kudos
Magneet
Hot Shot
Hot Shot

that is because those api calls require something to search for.

0 Kudos