Well, I had a funny feeling it would bite me in the b*tt starting a new lab with a 6 year old O/S (Server 2008 R2 is really Server 2010.) So, time to dust out the Windows Server 2012 R2 Evaluation ISO (Server 2014 really.) If you’re wondering what bit - there’s some nice PowerShell DNS cmdlets I wanted to use, and these only work with Server 2012+ (to be revealed in a future post.) Of course, it would have worked fine using 2008 R2 DCs and just have a Windows 2012 R2 server for running the DNS cmdlets (future WFA server), this post is written whilst away from home though, and had no existing DC on my laptop.
Installing the O/S
Using an ISO downloaded ages ago, stick it in the DVD drive, boot the system, and follow the prompts to install. It’s super easy so I’m not going to detail it here.
For reference, the ISO I used is the below - I’m sure Microsoft could have given it a longer name:
Rearming the Eval
If you’re like me and downloaded a 2012 R2 eval ages ago, and don’t fancy using an expired eval that reboots every hour, run the below in the Administrator: Command Prompt (or PowerShell), to buy yourself another 180 days>
To see how much time you’ve got left>
Setting up the Domain Controller using PowerShell
Note: This is taken from an old 10 February 2013 post. Change variables used as per requirements.
The following commands rename the computer, configure IP address, install ADDS, create a new DC in a new forest, and configure DNS reverse lookup zones.
New-NetIPAddress -IPAddress 10.0.1.10 -InterfaceAlias "Ethernet" -DefaultGateway 10.0.0.1 -AddressFamily IPv4 -PrefixLength 22
Install-WindowsFeature AD-Domain-Services -IncludeManagementTools
Install-ADDSForest -DomainName lab.priv
Add-DnsServerPrimaryZone 0.0.10.in-addr.arpa -ZoneFile 0.0.10.in-addr.arpa.dns
Add-DnsServerPrimaryZone 1.0.10.in-addr.arpa -ZoneFile 1.0.10.in-addr.arpa.dns
Add-DnsServerPrimaryZone 2.0.10.in-addr.arpa -ZoneFile 2.0.10.in-addr.arpa.dns
Other Things Not Done in PowerShell
A couple of habitual things I do with new Windows Server builds:
1) Set the pagefile manually (for this lab DC, 1.5 GB is plenty of RAM, and we’ll have an arbitrary fixed pagefile of 1 GB.)
2) Disable indexing on disk (minor performance gain where there’s no need to search for files on disk).
Image: Uncheck the box to disable indexing on disk
Other things to add on later
Not researched the PowerShell commands to do it (not in a good internet area whilst I write this) - will be adding a Certification Authority later on.