Building Windows Server 2012 R2 virtual Domain Controller on Hyper-V host – Part 2 – Installing DC as a Virtual Machine

This article is not part of the Building Microsoft System Center Cloud series but we need these DCs for our Hyper-V cluster that we are using in our Cloud series.

Hyper-V VM installation

In the previous article we discussed how to configure hardware for our first virtual machines that will be our Domain Controllers. Now we have to install them.

  • In the previous article I forgot to add the optical drive so please add it.
  • Change the boot order.
  • And install Microsoft Windows Server 2012 R2.

Configure the new OS

Now we can continue with the standard steps.

  • Rename computer using Rename-Computer cmdlet (or in GUI if it is faster for you).
  • Format all additional disks that we added in the previous article. Let’s make fun and do it in PowerShell.
Get-Disk | Sort-Object -Property Number | Select-Object -Skip 1 | Initialize-Disk -PassThru | New-Partition -AssignDriveLetter -UseMaximumSize | Format-Volume
  • I am sorry. I really like one liners. But I have to admit that I made a mistake for the first time. I did not use Sort-Object and I got ugly red error.
  • Assign IPv4 and IPv6.
Get-NetAdapter | New-NetIPAddress -IPAddress -PrefixLength 24 -DefaultGateway
Get-NetAdapter | New-NetIPAddress -IPAddress fd::1 -PrefixLength 64
  • PowerShell
  • Now we are ready to install Active Directory Domain Services and DNS.
Get-WindowsFeature AD-Domain-Services | Install-WindowsFeature -IncludeAllSubFeature
Get-WindowsFeature DNS | Install-WindowsFeature -IncludeAllSubFeature
  • PowerShell
  • Administration tools should be installed on your management server.
Install-WindowsFeature RSAT-AD-AdminCenter, RSAT-DNS-Server
  • PowerShell
  • And it is not bad idea to install the latest patches…
  • And of course do not forgot to disable the old stuff.
      • [ ] Enable LMHOSTS lookup
      • (o) Disable NetBIOS over TCP/IP

One response to “Building Windows Server 2012 R2 virtual Domain Controller on Hyper-V host – Part 2 – Installing DC as a Virtual Machine”

Leave a Reply

Your email address will not be published. Required fields are marked *

Active Directory Advanced function AlwaysOn Availability Groups AlwaysOn Failover Cluster Instances Building Cloud Cloud Cluster Cmdlet Database Deployment Design DFS Domain Controller DSC Fabric Failover Clustering File Server Group Policy Hardware Profile Host Hyper-V Installation Library Library Asset Library Server Network Operations Manager Orchestrator PowerShell PowerShell User Group PowerShell Workflow Security Service Manager SQL Server Storage System Center Template Time Time Synchronization Tips Virtual Machine Virtual Machine Manager VM Network VM Template Windows Server 2012 R2