Skip to content

Instantly share code, notes, and snippets.

@w1redch4d
Created July 13, 2024 16:15
Show Gist options
  • Save w1redch4d/245ae5aaa70de23d499cf0f4aca3b653 to your computer and use it in GitHub Desktop.
Save w1redch4d/245ae5aaa70de23d499cf0f4aca3b653 to your computer and use it in GitHub Desktop.
#
# Windows PowerShell script for AD DS Deployment
#
Import-Module ADDSDeployment
Install-ADDSForest `
-CreateDnsDelegation:$false `
-DatabasePath "C:\Windows\NTDS" `
-DomainMode "WinThreshold" `
-DomainName "xyz.com" `
-DomainNetbiosName "XYZ" `
-ForestMode "WinThreshold" `
-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