Remote Powershell SDK - New-AcctADAccount fails when passing credentials

Remote Powershell SDK - New-AcctADAccount fails when passing credentials

book

Article ID: CTX461443

calendar_today

Updated On:

Description

Machine account creation fails when using Remote Powershell SDK cmdlet "New-AcctADAccount" while passing service account credentials, as in this example: 

New-AcctADAccount -Count 1 -IdentityPoolUid "xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ADPassword $pwd -ADUserName "ServiceAcct@contoso.com"


 

Resolution

Do not pass service account credentials.  The New-AcctADAccount will use the logged in user credentials when no credentials are provided. 
New-AcctADAccount -Count 1 -IdentityPoolUid "xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"

 

Problem Cause

Not clear, but evidence suggests that in this case that a group policy was interfering.