Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
# Install ADDS/GPMC/RSAT(ADTools) Components
Add-WindowsFeature AD-Domain-Services, GPMC, RSAT-ADDS, RSAT-AD-PowerShell
# Create new Forest/Domain
Import-Module ADDSDeployment
$Params = @{
DomainName = "contoso.local";
DomainNetbiosName = "CONTOSO";
ForestMode = "Win2012R2";
DomainMode = "Win2012R2";
DatabasePath = "C:\Windows\NTDS";
LogPath = "C:\Windows\NTDS";
SysvolPath = "C:\Windows\SYSVOL";
SafeModeAdministratorPassword = (ConvertTo-SecureString "P@ssw0rd" -AsPlainText -Force);
InstallDns = $true;
CreateDnsDelegation = $false;
NoRebootOnCompletion = $false;
Confirm = $false;
Install-ADDSForest @Params
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.