Install Active Directory with PowerShell : Windows server core edition utilize very low memory and saves lot of space to compared to GUI version. Server 2019 is available as Datacenter server core and standard server core. Let’s install Active directory in server 2019 server core edition.install activer directory with powershell server 2019

Command prompt <-> PowerShell – We will be using Powershell for the entire process. Transformation from command prompt to PowerShell and viceversa is easy.

1.Planning for Active Directory install:Before promoting the server as Domain controller, change hostname (not mandatory but for our preference) and set static IP for the server.

Get-NetAdapter  #Get information of Network adapter

New-NetIPAddress -Interfacealias 'Ethernetname' -IPAddress -PrefixLength 24 -DefaultGateway 

Set-DnsClientServerAddress -InterfaceAlias 'Ethernetname' -ServerAddresses

Rename-computer -NewName “ikd00” -confirm -restart                #Server Rename

2. Once the server is restarted, Install AD roles and features using ‘Install-windowsfeature’ cmdlet and ‘-includemanagementtools’ parameter for required features.

Install-WindowsFeature AD-Domain-Services -IncludeManagementTools -Includeallsubfeatures

* Get-Windowsfeature is used to view list of installted roles & features.

3.Promote the server as domain controller: Next step is to promote the server as domain controller.

Install-ADDSForest -DomainName <Name of the domain>

Install-ADDSForest -DomainName itsmar05.local

4.Enter the safe mode password for DSRM. The password entered will be required during AD recovery mode.

Server will reboot automatically once the AD DS is installed.install ad with powershell

5. After restart of server, the server is promoted as Domain controller of the domain –  itsamar05.local .

6.Verify the AD services.


install ad in server2019 with powershell7. Also verify the availability of SYSVOL and Netlogon shares.



AM@RNATH is a Technology specialist primarily focus on Microsoft Technologies & Cloud Security. His certification includes M365 Certified: Enterprise Admin Expert. He loves to explore things from the latest technologies to cooking new recipes. Basically from Chennai, the southern part of India. Lucky son, friendly husband, and a proud father who loves to spend time with his family & friends while the laptop is not in his table.

Leave a Reply

Your email address will not be published.