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 192.168.1.10 -InterfaceAlias “Ethernet” -DefaultGateway 192.168.1.1 -AddressFamily IPv4 -PrefixLenght 24

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

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

More information: http://technet.microsoft.com/en-us/library/jj592692.aspx

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.