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...
can you try this
$permission = Get-VIPermission -Principal abc\user1
Remove-VIPermission -Permission $permission -Confirm:$false
can you try this
$permission = Get-VIPermission -Principal abc\user1
Remove-VIPermission -Permission $permission -Confirm:$false
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...