Brain dump: join new DC to existing AD infrastructure via PowerShell

From command line: "runas /user:administrator powershell

From powershell:

Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

PS C:\Users\username> Install-ADDSDomainController -CreateDNSDelegation:$false -Databasepath 'C:\Windows\NTDS' -DomainName 'YOURDOMAINNAMEHERE' -InstallDNS:$true -LogPath 'C:\Windows\NTDS' -NoGlobalCatalog:$false -SiteName 'YOURSITENAMEHERE' -SysvolPath 'C:\Windows\Sysvol' -NoRebootOnCompletion:$false -Force:$true -Credential (Get-Credential DOMAIN\USERNAME)

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.