Created
February 26, 2020 18:47
-
-
Save joshfinley/15f4d0d8b4ae4ee246c83d1b258f0331 to your computer and use it in GitHub Desktop.
Install domain controller to windows server instance
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Install-windowsfeature AD-domain-services | |
Import-Module ADDSDeployment | |
Install-ADDSForest | |
-CreateDnsDelegation:$false ` | |
-DatabasePath "C:\Windows\NTDS" ` | |
-DomainMode "Win2016" ` | |
-DomainName "localwindowslab.com" ` | |
-DomainNetbiosName "WINDOWSLAB" ` | |
-ForestMode "Win2019" ` | |
-InstallDns:$true ` | |
-LogPath "C:\Windows\NTDS" ` | |
-NoRebootOnCompletion:$false ` | |
-SysvolPath "C:\Windows\SYSVOL" ` | |
-Force:$true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment