Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $AdminPwd = ConvertTo-SecureString 'Pa$$w0rd' -AsPlainText -Force
- Install-WindowsFeature -Name AD-Domain-Services -IncludeManagementTools
- Import-Module ADDSDeployment
- Install-ADDSForest `
- -CreateDnsDelegation:$false `
- -DatabasePath "C:\Windows\NTDS" `
- -DomainMode "Win2012" `
- -DomainName 'johan.local' `
- -DomainNetbiosName 'JOHAN' `
- -ForestMode "Win2012" `
- -InstallDns:$true `
- -LogPath "C:\Windows\NTDS" `
- -NoRebootOnCompletion:$false `
- -SysvolPath "C:\Windows\SYSVOL" `
- -Force:$true `
- -SafeModeAdministratorPassword $adminpwd `
- -WarningAction Ignore
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement