X

How to Add a New Domain in an Existing Forest in Windows Server 2016 Using PowerShell

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.

Prerequisites

  1. Static IP is configured
  2. Administrator account has strong password
  3. Firewall is turned off
  4. 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.

Karim Buzdar: About the Author: Karim Buzdar holds a degree in telecommunication engineering and holds several sysadmin certifications. As an IT engineer and technical author, he writes for various websites.
X

Headline

You can control the ways in which we improve and personalize your experience. Please choose whether you wish to allow the following:

Privacy Settings