Server Core installation provides a minimal environment with no Windows Explorer shell for running specific server roles and no Start button. It should be noted that while you would usually use commands to manage server core, these commands will also work with a full Windows installation.
To discover the available server roles, open a command prompt and type the following:
To shut down or restart Windows Server 2008 Server Core, you need to use the shutdown.exe file. To shut down the computer, you use the following command:
To restart the computer, you use the following command:
shutdown /r /t 0 or shutdown /r
The /r specifies reboot while the /t 0 (short for 0 seconds) indicates reboot immediately.
To log off, use:
To open the Date and Time applet, type the following command at the command prompt:
To change the International settings including changing your keyboard for different layouts, type the following at the command prompt:
To change the computer name, you must first know the current computer name. To find
the current name, you can use the hostname or ipconfig command. Then use the following
command to change the computer name:
Then restart the computer.
To join a domain, use the following command:
netdom join <ComputerName> /domain:<DomainName>
You are prompted for the admin password. Next, restart the computer.
If you need to add a domain user account to the local Administrators group, type the following command:
netlocalgroup administrators /add <DomainName><UserName>
Setting up IP configuration is a little bit more complicated because it is done at the command prompt. To view the IP configuration, you can execute the following command:
To view your interfaces, execute the following command:
netsh interface ipv4 show interfaces
When you view the output of the netsh command, you need to note of the number shown in the Idx column for your network adapter.
To set a static IP address and default gateway, you would use the following command:
netsh interface ipv4 set address name=“<ID>” source=static
address=<StaticIP> mask=<SubnetMask> gateway=<DefaultGateway>
To set the static DNS address, use the following command:
netsh interface ipv4 add dnsserver name=<name of primary DNS server> address=<IP address of the primary DNS server> index=1
For each DNS server that you want to set, increment the index = number each time. Therefore, the first DNS server, index number would be 1. For the second DNS server, index number would be 2.
To change a server to the DHCP-provided IP address from a static IP address, use the following command:
netsh interface ipv4 set address name=“<ID>” source=dhcp where ID is the number of the network adapter.
Besides running these commands, there are a few simple but essential programs that are still available including:
• Notepad (notepad.exe)
• Task Manager (taskmgr.exe) command or pressing the Ctrl!Alt!Del keys.
• Registry Editor (regedit.exe)
• System Information (msinfo32.exe)
You can use cscript.exe to run scripts. For example, to verify the current automatic settings, execute the following command:
cscript scregedit.wsf /AU /v
To enable automatic updates, execute the following command:
cscript scregedit.wsf /AU /4
To disable automatic updates, execute the following command:
cscript scregedit.wsf /AU /1
After the server is communicating on the network, you can connect to the server remotely using administrative tools based on the Microsoft Management Console including Computer Management and Server Manager consoles.
MANAGE A SERVER CORE SERVER USING AN MMC SNAP-IN
To manage a server core server using an MMC snap-in, do the following:
1. Log on to a remote computer.
2. Start an MMC snap-in, such as Computer Management or Server Manager console.
3. In the left pane, right-click the top of the tree and click Connect to another computer. For example, in the Computer Management, you would right-click Computer Management (Local).
4. On another computer, type the computer name or IP address of the server running a Server Core installation and click OK. See Figure 1.
To use the Disk Management MMC snap-in remotely on a Server Core computer, you must start the Virtual Disk Service on the Server Core computer by typing the net start VDS command at the command prompt.
This lesson is a part of Managing Windows Server 2008 R2 chapter from 98-365 Windows Server Administration Fundamentals Prep course. More lessons in this chapter are
The Practice tests included in this course are: