Windows Server 2008 Server Core Basic Settings

Here are some basic settings and commands

1. Setup a static IP address

At the command prompt, type
netsh interface ipv4 show interfaces <— make sure you keep note of the Tdx numberNow with the Tdx number, type the following command
netsh interface ipv4 set address name=”<the Tdx number>” source=static address=<your static IP address> mask=<the mask> gateway=<the default gateway>

2. Add a DNS server entry to a Network interface

netsh interface ipv4 add dnsserver name=”<the Tdx number>” address=192.168.1.1 index=1

3. To set the administrative password

net user administrator *

4. Change the name of the server

First, you need to determine the current name of the server. You can use the ‘whoami’ command to find out the current machine name. Once you have the current machine name, type the following command at the command prompt:

netdom renamecomputer <currentName> /NewName:<newName>