Hi,
I've been looking for a way to add a server to a domain after renaming it (without reboot in between). All the existing threads I've found were not solved, at least not with the powershell command add-computer.
The answer in Powershell according the Microsoft technet:
Add-Computer -ComputerName Server01-Domain Domain02 -NewName Server044-Credential Domain02\Admin01 -Restart
When trying this, I get the message that "The directory service is busy"
I've also tried with the rename-computer upfront (without reboot), I've also tried with adding the option "JoinWithNewName.
- If I first rename, I get "The specified network name is no longer available"
- When using the -option JoinWithNewName, I get "No mapping between account names and security IDs was done".
I'm logged on with a local administrator and give domain admin credentials to the add-computer command.
I was not able to find a way to get it working
Regards,
WiM