Link to home
Start Free TrialLog in
Avatar of Hans de Jongh
Hans de JonghFlag for Netherlands

asked on

Add active directory read only account to esxi 6.0 host with powershell

Hello,

I want to add an active directory account to the local esxi servers through powercli.
The user has to have shell access and should be in the local group "read only"
Im running esxi 6.0

I have tried the following but i cant get it working
New-VMHostAccount -UserAccount user@domain -GrantShellAccess $true

it keeps asking for a password which i dont want to give as it is a domain account.

Thanks
Avatar of David Johnson, CD
David Johnson, CD
Flag of Canada image

you want to use a domain account but you don't want to add a domain password? You can't have your cake and eat it too.

I would not use a domain account unless you have a non virtualized DC, or you will have problems trying to authenticate if the DC's are not running.
Avatar of Hans de Jongh

ASKER

i think you miss understand. It makes no sense to add a passwd to a domain account as that defeats the purpose of a AD account right ( central management).

I need that domain account;)
ASKER CERTIFIED SOLUTION
Avatar of Hans de Jongh
Hans de Jongh
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
i googled!