In previous article, we added a new domain in an existing forest using server manager. In this guide, I'll focus on adding a new domain using PowerShell.
- Static IP is configured
- Administrator account has strong password
- Firewall is turned off
- DNS server settings in TCP/IPv4 are correct and they are pointing to a domain controller
Add a New Domain in an Existing Forest in Windows Server 2016
Step 1. Open PowerShell with elevated privileges.
Step 2. Execute the following command.
Install-windowsfeature AD-domain-services Install-AddsDomain -domaintype treedomain -parentdomainname yourdomain -newdomainname ourdomain.com -credential (Get-Credential)
You will be prompted to provide a user name and password of an account which is member of enterprise admins group. You will also need to provide directory services restore mode (DSRM) password.
The server will be automatically rebooted after successful configuration.