Server 2012: Initial configuration of windows server core with powershell

Windows Server core is now Microsoft’s preferred choice. Even though we have great remote management tools, we still have to do a initial setup of the server.

Launch: Powershell.exe

1. Give the server a name: rename-computer DemoComputer

2. Give the server a Ipv4 address: New-NetIPAddress -IPAddress -InterfaceAlias “Ethernet” -DefaultGateway -AddressFamily IPv4 -PrefixLenght 24

3. Specify dns server: Set-DnsClientServerAddress -interfaceAlias “Ethernet” -ServerAddresses

4. Join server to domain: add-computer -DomainName

More information:

5. If you are getting “WinRM Negotiate authentication error” use following command to add the Remote server to the trusted host list of Your management server:

Set-Item wsman:\localhost\Client\TrustedHosts Server01 -Concatenate -Force

6. If you need to disable the firewall during initial setup: netsh advfirewall set allprofiles state off

Leave a Reply

Your email address will not be published.