VMware Cloud Community
thiag2011
Enthusiast
Enthusiast

Unable to get groups details in get-vipermission

Hi all,

When I try to execute the below command to get permission of a useraccount, i get output properly.

get-vipermission -principal domainname\user1

but when I execute the below command to get permission of a group, I get error

get-vipermission -principal domainname\group1



Note: Both user1 and group1 are provided permissions on the ESXi host.

Please let me know the issue/ command to get permission details for a group.



0 Kudos
2 Replies
thiag2011
Enthusiast
Enthusiast

Any Suggestions please...

0 Kudos
thiag2011
Enthusiast
Enthusiast

It works this way...

$permission = Get-VIPermission | Where Principal -eq "domain\group1"

  Remove-vipermission -permission $permission -confirm:$false

If any better way, please let me know.

0 Kudos