Windows Server 2012 Hyper-V Install and Setup Pt. 2


In this part after the installation we can give the system a hostname, ip address and configure DNS. This will all be done from the terminal and powershell. After you have logged into the system with the administrator account here is the process to follow.

From the terminal change into powershell by typing “powershell” then enter.

PS C:UsersAdministrator>powershell

Next rename the hostname by typing “Rename-Computer <newname>” then enter.

PS C:UsersAdministrator>Rename-Computer labtest01a

Next we’re going to reconfigure the network adapter with a static ip address. But before we do the “InterfaceAlias” is needed. In order to find out the “InterfaceAlias” all we need to do is type “ipconfig” then enter. This is probably information you’ve seen before but the “InterfaceAlias” is shown below. The default is typically “Ethernet”.

Now that we have the “InterfaceAlias”, let’s configure a static ip address using the “New-NetIPAddress” command as shown below then enter.

PS C:UsersAdministrator>New-NetIPAddress -IPAddress 192.168.2.20 -InterfaceAlias “Ethernet” -DefaultGateway 192.168.2.1 -AddressFamily IPv4 -PrefixLength 24

Next lets set the DNS for this computer before rebooting using the “Set-DnsClientServerAddress” command then enter.

PS C:UsersAdministrator>Set-DnsClientServerAddress -InterfaceAlias “Ethernet” -ServerAddresses 192.168.2.250

Now restart the computer by typing “Restart-Computer” then enter

PS C:UsersAdministrator>Restart-Computer

After the computer has restarted we can add the computer to the Active Directory domain. This is simple as well using the “Add-Computer -DomainName <yourADdomain>” powershell command as shown below.

PS C:UsersAdministrator>Add-Computer -DomainName myvlab

This will prompt for your domain credentials that have access to add computer accounts then click OK.

Now restart the computer by typing “Restart-Computer” then enter

PS C:UsersAdministrator>Restart-Computer

If you’d like to see this in action, check out the video.

[vsw id=”zOBSDVPYVH0″ source=”youtube” width=”500″ height=”344″ autoplay=”no”]

In the next post, I’ll show how to install the Hyper-V management tools so the server core system can be managed remotely.