Adding the Server Core System to a Domain

The following script illustrates the basic syntax to add a Server Core system to a Windows domain:

Netdom join <computername> /domain:<domain> /OU:<ou path> /userd:<domain>\<username>/passwordD:*

Input the domain name and the target OU. Supply the user account and password for an account that has permissions to add computers to the domain.

The same function can be performed using PowerShell with the following commands:

Add-Computer -domainname <domain> -OUPath "OU=OU,=Domain,DC=com"

Get Windows Server® 2012 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.