No mapping between account names and security IDs was done.

AvatarPosted by

Last day’s very busy with a small DevOps project in our company. Automating “bare metal deployment” of new Hyper-V Servers. We deploy the software with a combination of MDT and the brand new HP (finally) PowerShell commands.

During the step of renaming and joining the new server we faced the following error:
Computer failed to join domain ” from its current workgroup ‘WORKGROUP’ with following error message: No mapping between account names and security IDs was done.

After some troubleshooting we found a solution, by adding the two options: JoinWithNewName and AccountCreate
Renaming computer PowerShell and Joining a domain with PowerShell

 

2 comments

  1. Thanks for this post! I tried the parameter -NewName first, but it gave me an error. Afterwards I tried using -Options JoinWithNewName, but it gave me the error that you described.

    I added “AccountCreate” as an option and it worked! It’s funny that Microsoft Documentation for the command Add-Computer mentions that AccountCreate is not needed but it won’t work otherwise!

Leave a Reply

Your email address will not be published. Required fields are marked *