VMware Cloud Community
thiag2011
Enthusiast
Enthusiast
Jump to solution

Remove Specific AD account permission from ESXi host- Help required

Hi all,

I would like to remove a specific AD account from ESXi host.

I tried using the command remove-vipermission using the syntax

remove-vipermission -permission domain\accountname -Confirm:$false

example: remove-vipermission -permission abc\user1 -Confirm:$false

          abc- domain

          user1 - domain user

But I get errors..

Can someone help me with the exact statement to delete this using powercli...

Reply
0 Kudos
1 Solution

Accepted Solutions
VinithMenon
VMware Employee
VMware Employee
Jump to solution

can you try this

$permission = Get-VIPermission -Principal abc\user1

Remove-VIPermission -Permission $permission -Confirm:$false

View solution in original post

Reply
0 Kudos
2 Replies
VinithMenon
VMware Employee
VMware Employee
Jump to solution

can you try this

$permission = Get-VIPermission -Principal abc\user1

Remove-VIPermission -Permission $permission -Confirm:$false

Reply
0 Kudos
thiag2011
Enthusiast
Enthusiast
Jump to solution

Yes.. exactly.. just i Got it...

Thanks Vinith...

But am unable to delete permission assigned for a group. Even am not able to get the permission assigned to a group.

     get-vipermission -principal domain\groupname

     eg: abc\group1

          I get error.

Can you assist please...

Reply
0 Kudos