I am trying to give an AD group admin permission in ESXi like so:
new-vipermission -role Admin -Principal example\esxoperators -Propagate $true
I get an error:
could not find VI account: example\esxoperators
Authentication services are configured etc. In the viclient in can select the group, but not in powercli.
What am i doing wrong?
Have you tried with PowerCLI 4.1?
We've made some improvements for domain accounts support in New-VIPermission but since Host Authentication services are new to vSphere 4.1 it may still experience some problems.
Let me know if the problem still exists so we can address it asap.
You can also check Carter's post for other solution.
PowerCLI Dev Team
I tried the same line several times with different domain groups for -Principal. The permission is created and everything seems to be OK. But if I mistake the domain group name I receive the same error: "Could not find VIAccount with name...".
Could you check the name of the group "example\esxoperators" is the correct group name?
If not could you provide more details whether this group is accesible from the VC? You could simply check it using Remote Desktop to the VC with the VC user and assigning this group permission to some file or folder there.