How To Join Windows Nano Server 2016 To Domain

How To Join Windows Nano Server 2016 To Domain

 

In this blog post, I’ll show how to join a Windows Nano Server 2016 Virtual or physical Machine to a Windows Server 2016 Domain Controller.

This will also work on Windows Server 2008, or 2012 DC.

It’s Important to know the limitation and the process of joining a Windows Nano Server 2016 to an Active Directory Domain which they are:

For start, Nano Server does not support Group Policy, the process of joining the machine to AD Is done by the djoin.exe utility.

The djoin.exe utility, also known as an Offline Domain Join, was first Introduced by Microsoft with the release of Windows 7 and Windows Server 2008 R2 and it allows to join a machine to a domain controller with contacting a domain controller.

The process of joining a Nano Server to a DC Is as follow:

  • From a Domain Controller – Create an offline computer object and create a request file
  • Copy the requested file to the Nano Server
  • Run djoin.exe with the requested file from the Nano Server
  • Restart Nano Server and done

To get started, I’ll log into my Domain Controller and will run the cmdlet below to create a Computer Object In AD with the name NanoD05, And save a request file called filename

djoin.exe /provision /domain TEST /machine NanoD05 /savefile .\filename

In my case, the requested file was saved to the C:\ Drive because I ran the command from the c:\

How To Join Windows Nano Server 2016 To Domain
How To Join Windows Nano Server 2016 To Domain

If I search for the new Computer Object in AD using PowerShell, I’ll see it

Get-ADComputer -Identity nanod05
How To Join Windows Nano Server 2016 To Domain
How To Join Windows Nano Server 2016 To Domain

Next, I’ll copy the requested file to my Nano Server

Next, I’ll connect to my Nano Server via PowerShell and run the cmdlet below

djoin /requestodj /loadfile c:\filename /windowspath c:\windows /localos

Next, I’ll restart the Nano Server using the cmdlet

Restart-Computer

When the Nano Server comes online, I’ll connect to it using my Domain Admin Account and run the cmdlet below to confirm the result

To connect to the Nano Server from a Joined Management Sever or a DC with admin account simply use the line below to connect:

Enter-pssesion nanoserver

By default, All Domain Admins account have access to the Nano Server

Get-ComputerInfo -Property *domain*

As you noticed, the process Is not simple as the joining a Windows Server with GUI or Core but It’s not hard as well beside the fact that you need to follow the process.




Search blogs




Bitnami