Created
July 13, 2024 16:15
-
-
Save w1redch4d/245ae5aaa70de23d499cf0f4aca3b653 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# | |
# 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