As mentioned in my previous post about configuring Windows Server 2012 Core, you have multiple options. One is sconfig, but the preferred method is using PowerShell. PowerShell is a really powerful scripting language and Microsoft is pushing the use in all of their products.
In this post, I will describe how to configure your Windows Server 2012 Core installation using PowerShell. I will describe how to change your computername, set the IP address and join your server to the domain.
After you installed Windows Server 2012, log in to you server. Once logged in, the default shell is CMD. Just start powershell by typing “powershell” and press enter.
First thing I always do, is changing the computer name. The PowerShell command for this is:
Rename-Computer -NewName MYNAME
Now the computer name is changed, let’s change the IP address. We will need a few commands for this, since we need to know on which network adapter we need to change the IP address. First, use the following command:
This will output a list of available network adapters with their name, description, index and status.
As can be seen in this screenshot, the name of this adapter is “Ethernet”. We will need this name in the next command. To change the IP address on that specific network adapter, use the following command: