Following on from
the lab design here:
DC101 &
DC201 - Sysprep
Command Prompt
CMD>:
cd
c:\Windows\System32\Sysprep
sysprep /generalize
/oobe /reboot
{REBOOTS}
- Re-enter Product Key
- Accept the license terms for using Windows
- Select Country, Language, and Keyboard layout
- Enter Administrator password and Finish!
DC101 – First DC
Login locally as Administrator
PowerShell PS>:
rename-computer DC101
restart-computer
{REBOOTS}
Login locally as Administrator
PowerShell PS>:
New-NetIPAddress
-IPAddress 10.1.1.11 -InterfaceAlias
"Ethernet" -DefaultGateway 10.1.1.5 –AddressFamily
IPv4 -PrefixLength 24
Install-WindowsFeature
AD-Domain-Services -IncludeManagementTools
Install-ADDSForest
-DomainName lab.priv
{REBOOTS}
Login as LAB\Administrator
PowerShell PS>:
Add-DnsServerPrimaryZone
1.1.10.in-addr.arpa -ZoneFile 1.1.10.in-addr.arpa.dns
Add-DnsServerPrimaryZone 1.2.10.in-addr.arpa -ZoneFile 1.2.10.in-addr.arpa.dns
GUI – Active Directory
Sites and Services:
- Rename the Default-First-Site-Name to SITE01
- Create a second site called SITE02
- Create a subnet 10.1.0.0/16 and assign to SITE01
- Create a subnet 10.2.0.0/16 and assign to SITE02
Note: I’m sure this
can be done via PowerShell!
Image: Sites and
Subnets
DC201 – Second DC
Login locally as Administrator
PowerShell PS>:
rename-computer DC201
restart-computer
{REBOOTS}
Login locally as Administrator
PowerShell PS>:
New-NetIPAddress
-IPAddress 10.2.1.11 -InterfaceAlias
"Ethernet" -DefaultGateway 10.2.1.5 –AddressFamily
IPv4 -PrefixLength 24
Set-DnsClientServerAddress
-InterfaceAlias "Ethernet" -ServerAddresses 10.1.1.11
Add-Computer
-DomainName lab.priv
restart-computer
{REBOOTS}
Login as LAB\Administrator
PowerShell PS>:
Install-WindowsFeature
AD-Domain-Services -IncludeManagementTools
Install-ADDSDomainController
–DomainName lab.priv –SiteName SITE02
{REBOOTS}
Login as LAB\Administrator
PowerShell PS>:
Set-DnsClientServerAddress
-InterfaceAlias "Ethernet" -ServerAddresses 10.1.1.11,10.2.1.11
DC101 –
Updating Secondary DNS to point to Second DC
PowerShell PS>:
Set-DnsClientServerAddress
-InterfaceAlias "Ethernet" -ServerAddresses 10.1.1.11,10.2.1.11
That’s the new 2012 Domain Controllers done!
Note: stop-computer does just that!
Comments
Post a Comment