Advertisement
Guest User

Untitled

a guest
Sep 2nd, 2015
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $AdminPwd = ConvertTo-SecureString 'Pa$$w0rd' -AsPlainText -Force
  2. Install-WindowsFeature -Name AD-Domain-Services -IncludeManagementTools
  3.             Import-Module ADDSDeployment
  4.             Install-ADDSForest `
  5.             -CreateDnsDelegation:$false `
  6.             -DatabasePath "C:\Windows\NTDS" `
  7.             -DomainMode "Win2012" `
  8.             -DomainName 'johan.local' `
  9.             -DomainNetbiosName 'JOHAN' `
  10.             -ForestMode "Win2012" `
  11.             -InstallDns:$true `
  12.             -LogPath "C:\Windows\NTDS" `
  13.             -NoRebootOnCompletion:$false `
  14.             -SysvolPath "C:\Windows\SYSVOL" `
  15.             -Force:$true `
  16.             -SafeModeAdministratorPassword $adminpwd `
  17.             -WarningAction Ignore
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement