Tuesday, September 25, 2012

Windows Server 2012 Active Directory Installation by using PowerShell Commands.

We will Configure our server as the first Active Directory domain controller in a new forest.
The new domain name is "2012test.com". This is also the name of the new forest.
The NetBIOS name of the domain: 2012TEST
Forest Functional Level: Windows Server 2012
Domain Functional Level: Windows Server 2012
Additional Options:
  Global catalog: Yes
  DNS Server: Yes
  Create DNS Delegation: No
Database folder: C:\Windows\NTDS
Log file folder: C:\Windows\NTDS
SYSVOL folder: C:\Windows\SYSVOL


PowerShell Script

Import-Module ADDSDeployment
Install-ADDSForest `
-CreateDnsDelegation:$false `
-DatabasePath "C:\Windows\NTDS" `
-DomainMode "Win2012" `
-DomainName "2012test.com" `
-DomainNetbiosName "2012TEST" `
-ForestMode "Win2012" `
-InstallDns:$true `
-LogPath "C:\Windows\NTDS" `
-NoRebootOnCompletion:$false `
-SysvolPath "C:\Windows\SYSVOL" `
-Force:$true

No comments:

Post a Comment

 
span.fullpost {display:inline;}