Last active
June 14, 2022 22:06
-
-
Save 8bitnz/ea12d86e3435871cf2d22cfe9275373f to your computer and use it in GitHub Desktop.
Deploy AD PowerShell
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 | |
$ForestConfig = @{ | |
CreateDnsDelegation = $false | |
DatabasePath = 'C:\Windows\NTDS' | |
DomainMode = 'Win2012R2' | |
DomainName = 'yourdomain.com' | |
DomainNetbiosName = 'YOURDOMAIN' | |
ForestMode = 'Win2016' | |
InstallDns = $true | |
LogPath = 'C:\Windows\NTDS' | |
NoRebootOnCompletion = $false | |
SysvolPath = 'C:\Windows\SYSVOL' | |
Force = $true | |
} | |
Install-ADDSForest @$ForestConfig |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment