Create make_dc.ps1
This commit is contained in:
committed by
GitHub
parent
7f491689d9
commit
ada69fd5f4
@@ -0,0 +1,15 @@
|
|||||||
|
Install-WindowsFeature -Name AD-Domain-Services -IncludeManagementTools -IncludeAllSubFeature
|
||||||
|
|
||||||
|
$pwd = Read-Host "Enter the SafeModeAdminPassword" -AsSecureString
|
||||||
|
$usernumber = Read-Host "Enter your user number, e.g. for user01 enter 01"
|
||||||
|
|
||||||
|
$pwd = Read-Host "Enter the SafeModeAdminPassword" -AsSecureString
|
||||||
|
Install-ADDSForest `
|
||||||
|
-DomainName ad.user$usernumber.esxi.akamaipartnertraining.com -DomainNetBiosName ADUSER$usernumber `
|
||||||
|
-DomainMode WinThreshold -ForestMode WinThreshold `
|
||||||
|
-SkipPreChecks `
|
||||||
|
-InstallDns:$true `
|
||||||
|
-SafeModeAdministratorPassword $pwd `
|
||||||
|
-Force
|
||||||
|
|
||||||
|
ipconfig /registerdns
|
||||||
Reference in New Issue
Block a user