Microsoft Nano Server won't logon to domain

This blog post describes the solution I used when I was not able to log onto a domain with Microsoft Nano Server even though I supplied correct credentials and I had previously successfully logged on to the domain with that server.  The error is "The user name, domain or password is incorrect.".



The cause of this issue is likely because I'm using virtual machines with snapshots and, even though I'm rolling back to a snapshot after it has been added to the domain, the trust relationship between it and the domain fails, and it has to be added to the domain again.

On a normal Windows server, this is straightforward as you can change the system property settings and add the server to the domain again.

On Nano Server, to rejoin the domain, you first need to run this command on any domain controller:
Djoin.exe /provision /domain <FQDN Of domain> /machine <DNS name of nano server> /savefile c:\<File Name> /reuse

You then need to copy the domain information file created to the nano server.  I did this over PowerShell, first I had to add the Nano Server to TrustedHosts:
Set-Item WSMan:\localhost\Client\TrustedHosts "<IP Address>"

Then create a PowerShell session on the Nano Server:
$s = new-pssession -computername <IP Address> -credential -\<username>

And copy the file:
Copy-Item -ToSession $s -Path c:\domainjoin -Destination c:\

You can then enter the PowerShell session:
Enter-Pssession $s

and rejoin the domain using the domain information file:
Djoin.exe /requestodj /loadfile c:\domainjoin /windowspath c:\windows /localos

Finally, restart the Nano Server and login.

Comments

Popular posts from this blog

LG TV This app will now restart to free up more memory

LG TV Clear All Browsing History Data

Excel Import CSV not using "Use First Row as Headers"