Install and configure Window Server 2008 R2 Core
When you are installing Windows Server 2008 (or R2), besides the licensed version options you have the option of install full or core. How many of you use core? Why would you use core? Server core is just that. Windows without the interface. All you get is a command window and a few applets. What is this madness, and why would you inflict this on yourself? Read on. The core mode of Windows Server 2008 (and R2) does not include the standard Explorer interface. All configuration and administration is done through a command prompt, or via remote management tools such as those for HyperV, DNS, ADUC, and other tools. There is more than one reason to run in core:
- Reduced Maintenance Core servers are generally uesd for a specific application or purpose. The only things that are installed are bits required to run that service.
- Reduced Attack Surface Fewer running apps = fewer points of entry.
- Lower Resource Utilization No overhead from extraneous or un-needed services or GUI interfaces
Now you might have tried installing core in the past, and been pretty much turned off by the lack of interface. Where is Explorer? Where is Control Panel? How the heck do I set an IP address or the computer name? Well, you're in luck. Configuring this mode isn't as hard as you might think. And I'm going to walk you through it, right now.
- On the "Install Windows" screen, select "Windows Server 2008 RS Standard (Server Core Installation)", and click Next.
- Place a check mark in the "I Accept the license terms" checkbox, and click Next.
- On the "Which type of installation do you want?" screen, click "Custom (advanced)".
- On the disk selection screen, select the target disk that Windows will be installed on, then click Next.
- Files will begin copying, and the computer may restart several times.
- After file copying is complete, you will prompted that the password must be set or changed. Click Ok.
- Set a strong password for the local administrator account.
- Click Ok on the password change confirmation screen. At this point, you'll be presented with a command prompt. This is the interface to Windows Server 2008 Core.
- Now, you'll have to rename the computer to the desired name. In order to do this, you must first determine the current name of the computer, as assigned by setup. To determine the current name, at the command prompt, type:
Echo %computername%To change the name of the computer, type:
NETDOM RenameComputer /NewNameFor example of the old name is "WIN-A234590D", and you want to call the server "MyServer55", the correct command would be:
NETDOM RenameComputer WIN-A234590D /NewName MyServer55
- In the interest of future ease administration, it is convenient to rename the network interface from the default. To rename the interface, type the following:
Netsh int set interface name = “Local Area Connection” newname = “LAN”
- In order to provide access for remote administration, there are three steps to perform:
- Disable the Windows Firewall:
NETSH Firewall Set OpMode Disable
- Enable remote administration:
NETSH Firewall Set Service RemoteAdmin Enable
- Setup the Windows registry for remote administration:
Cscript C:\Windows\System32\Scregedit.wsf /ar 0
- Disable the Windows Firewall:
- Now, we can set the IP address of the network interface:
Netsh int ipv4 set address "LAN" static 192.168.1.200 255.255.255.0 192.168.1.1
Netsh int ipv4 set dnsserver "LAN" static 192.168.1.2 primary
Netsh int ipv4 set dnsserver "LAN" static 192.168.1.3 secondary
- If this server will be participating in a domain, you can now add the machine to the domain:
netdom join /domain: /userd: /passwordd:*
If you are participating in a workgroup rather than a domain, you may need to add the primary dns suffix for the machine, as well as any suffix search order domains, so the machine can find other servers that it may need to talks to. The following command (and resulting output) will set the DNS suffix by updating the NV Domain value, which is found in the
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters subkey (watch out for line wrap):
reg add HKLM\System\CurrentControlSet\services\tcpip\parameters /v "NV Domain" /d "mydomain.com" /f
If you don't want to change the default DNS suffix, but instead modify only the DNS search list, you can change the SearchList value, which is found at the same registry-subkey location. The value can contain multiple entries separated by commas, such as dom1.com,dom2.com" First, let's view the current value using the following command (with the resulting output):
reg query hklm\system\currentcontrolset\services\tcpip\parameters /v "SearchList" HKEY_LOCAL_MACHINE\system\currentcontrolset\services\tcpip\parameters SearchList REG_SZ mydomain.com
Next, use the following command (with the resulting output) to update the SearchList value:
reg add hklm\system\currentcontrolset\services\tcpip\parameters /v "SearchList" /d "domain1.com,domain2.com,domain3.com" /f
Your server is now built, and ready for roles! Click here to learn how.
About the Author
dwirch has posted a total of 172 articles.
Comments On This Post
No comments on this post yet!
Do you have a thought relating to this post? You can post your comment here. If you have an unrelated question, you can use the Q&A section to ask it.
Or you can drop a note to the administrators if you're not sure where you should post.