Installing a Forest Root Domain
Installing Active Directory and DNS has always been reasonably straightforward. You can always use the Server Manager GUI, but using PowerShell is easier to automate. You create an AD forest by creating your first domain controller.
To create a DC, you start with a system running Windows Server. You then add the AD DS services Windows feature to the server and the management tools. Then you use the management tools to promote DC1
to be your first DC (aka DC1.Reskit.Org)
within the Reskit.Org
domain.
Getting ready
You run this recipe on DC1
after installing PowerShell 7 and VS Code.
How to do it...
- Installing the AD Domain Services feature and management tools
Install-WindowsFeature -Name AD-Domain-Services -IncludeManagementTools
- Importing the ADDeployment module
Import-Module -Name ADDSDeployment
- Examining the commands in the ADDSDeployment module
Get-Command -Module ADDSDeployment
- Creating a secure password for the Administrator
$PSSHT...