Windows 2008/2008 R2 server core initial configuration
Windows 2008 R2 has its own tool for do the initial configuration of the server core, but previous version of the Windows 2008R2(Windows 2008) all the initial configuration also cmd based.
Get the computer name type hostname name and press enter

Rename computer- type netdom renamecomputer WIN-1MKA1D339E9 /newname EAGLE

WIN-1MKA1D339E9 IS A PREVIOUS NAME AND EAGLE IS A YOUR COMPUTER NAME
Press y and press enter

For restart the computer type shutdown –r –t 00


IP Address configuration for the server core (Add ip address dns server and gateway)
Type netsh(Network shell) and press enter

Type int ipv4 and press enter

Type add address “local area connection” 192.168.1.100 255.255.255.0 (“local area connection” is a name of a local area connection. This can be find from typing ipconfig /all command)

For adding gateway type add address “local area connection” gateway=192.168.1.1 gwmetric-1

For adding dnsserver type add dnsserver “local area connection” 8.8.8.8(8.8.8.8 is a google dns server you can add your own server)

For Enable remote desktop(cscript c:\windows\system32\scregedit.wsf /ar 0
Activate server using cmd (slmgr.vbs /dli) this gives the current license details of the server

Now type slmgr.vbs /ato(This will automatically activate your server for 180 days(Trial Period).Make sure that your server is connected with the internet)
