PowerShell Command to Promote a Server to Domain Controller
-CriticalReplicationOnly:$false -DatabasePath "C:\Windows\NTDS" -DomainName "Contoso.com" `
-InstallDns:$true -LogPath "C:\Windows\NTDS" NoRebootOnCompletion:$false -SiteName `
"Default-First-Site-Name" `-SysvolPath "C:\Windows\SYSVOL" -Force:$true
- Install-ADDSDomainController will promote the Server to Domain Controller.
- -SkipPreChecks will skip the prechecks and will procced with the install
- -NoGlobalCatalog:$false Will not install Global Catalog Component on this server.
- -CreateDnsDelegation:$false Will not create DNS Delegation on this server
- -DatabasePath tell where should be the NTDS Folder Location
- -DomainName tell your Domain Name
- -InstallDns:$true Installs DNS Component on the server
- -LogPath tells the LogPath Location.
- NoRebootOnCompletion:$false Will not reboot the server after install.If you want to reboot make it $true
- -SiteName Enter the AD Site name where server has to be installed
- -SysvolPath Location of the Sysvol folder
No comments:
Post a Comment