Windows IT Pro is the authoritative and independent resource for windows nt, windows 2000, windows 2003, windows xp. Features a collection of resources and magazines for windows IT professionals.
  
  
  Advanced Search 


October 2008

Putting the Finishing Touches on Server Core

Set the time zone, configure the screen saver, and tweak the firewall
RSS
Subscribe to Windows IT Pro | See More Server Systems Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!

Executive Summary: The focus of the past few Windows Power Tools columns has been to show you how to get a new Windows Server 2008 Server Core system ready to do some work. To wrap up that focus, let’s set the system's time zone, configure its screen saver, and tweak its firewall.

The focus of my past few columns has been to show you how to get a new Windows Server 2008 Server Core system ready to do some work. To wrap up that focus, I want to provide a few short command-line tips—namely, setting the system’s time zone, configuring its screen saver, and tweaking its firewall. After those tasks are done, we’ll have put the final polish on a ready-to-roll Server Core system.

Tinkering with Time Zones
You would think that setting a system’s time zone would be pretty simple—say, typing a number into the registry—but for some reason, time zones are tougher than that. So, Microsoft decided to simplify the graphical functionality of the Control Panel Date and Time applet so that it would work on Server Core. (Remember, Server Core isn’t completely GUI-less. Simple GUI-based apps such as Task Manager, Notepad, Regedit, and many setup programs work fine with Server Core’s limited interface.)

To set a Server Core system’s time zone, just type the timedate .cpl command at the command prompt and tap Enter, and the applet will appear. (Another way to set the time zone on a Server Core system is to use a script to do the installation.) The only other Control Panel applet to find its way into Server Core is Regional and Language Options (intl.cpl).

Setting the Screen Saver
By default, Server Core engages its screen saver after 10 minutes of inactivity, locking the screen until you log on again. While testing my Server Core system, I found this behavior irritating, so one of my favorite setup tasks is to open Regedit, navigate to HKEY_CURRENT_USER Control Panel\Desktop, and adjust the ScreenSaverIsSecure subkey’s value from 1 to 0, which removes password protection from the screen saver. You wouldn’t want to do that on a production machine, of course, but it might save your sanity on test systems.

You can also access the ScreenSaveTimeOut subkey to specify how many seconds of inactivity to wait before screen-saver activation, the ScreenSaveActive subkey to enable or disable the screen saver, and the SCRNSAVE.EXE subkey to identify which screen saver you want to use. Server Core offers only the standard logon.scr option (i.e., the Windows logo) or the scrnsave.scr option (i.e., a blank screen). In my tests, new ScreenSaverIsSecure, ScreenSaveActive, and SCRNSAVE.EXE values take effect immediately, but changing the ScreenSaveTimeOut value requires a logoff/logon.

Fine-Tuning the Firewall
All versions of Server 2008 differ from their predecessors by enabling their firewall by default. You can open Server Core’s firewall through Group Policy (i.e., Computer Configuration, Administrative Templates, Network, Network Connections, Windows Firewall). Then, in either the Domain Profile or Standard Profile folder, set the Windows Firewall: Protect All Network Connections value to Disabled.

You can also use the command line to disable the firewall:

netsh firewall set opmode disable

To re-enable the firewall, just replace disable with enable. If you don’t know the firewall’s state, just type

netsh firewall show state

This command produces about a dozen lines of fairly confusing output. Look for the line that begins with Operational Mode =; the presence of Enable or Disable will answer the question.

I like the idea of raising the Server Core firewall—after all, security is one of its selling points—but I typically open my firewalls just enough to let the system respond to pings. You can set your Server Core firewalls to allow the system to respond to pings by using the command

netsh firewall set icmpsetting 8 enable

In general, you won’t have to open ports in your firewall because Ocsetup automatically opens whatever ports a server module needs when you install that module. For example, installing the DNS Server service opens port 53 without any further work on your part. But if you did need to open a port, you’d type

netsh firewall set portopening tcp|udp <portnumber label>

To tell the system that you’ve enabled Remote Desktop through the registry (which doesn’t open the RDP port by default), type

netsh firewall set portopening tcp 3389 "Remote Desktop"

Ready to Roll
With these final tinkerings done, you’re ready to put your Server Core box to work as a DHCP server. Tune in next month for that!

End of Article



Reader Comments

You must log on before posting a comment.

If you don't have a username & password, please register now.




Top Viewed ArticlesView all articles
WinInfo Short Takes: Week of November 24, 2008

An often irreverent look at some of the week's other news, including a Vista Capable dismissal request, Zune price reductions, Morrow musings, Novell and Microsoft sitting in a tree ... two years later, Yahoo!, IE 6 on Windows Mobile, and so much more ...

Command Prompt Tricks

One reader shares his tip for setting up the command prompt to reflect a remote path. ...

The Memory-Optimization Hoax

Don't believe the hype. At best, RAM optimizers have no effect. At worst, they seriously degrade performance. ...


Related Articles Server Core from Afar

Fine-tune Server Core’s IP Stack with Netsh

Go Commando with Windows Server 2008’s Server Core

Scregedit Streamlines Server Core

Windows OSs Whitepapers Why SaaS is the Right Solution for Log Management

Related Events Configuration Manager SP1 and R2 Overview

Check out our list of Free Email Newsletters!

Windows OSs eBooks Understanding and Leveraging Code Signing Technologies

A Guide to Windows Certification and Public Keys

SQL Server Administration for Oracle DBAs

Related Windows OSs Resources Become a VIP member of the Windows IT Pro community!
Get it all with the VIP CD and VIP access. A $500+ value for only $279!

Subscribe to Windows IT Pro!
Solve your toughest technical problems with our experts and access 10,000 + articles online. 30% off

Monthly Online Pass - Only $5.95!
Get instant access to 10,000+ articles from Windows IT Pro Magazine!

TechNet Virtual Labs
Evaluate and test Microsoft's newest products.


Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro Windows Dev Pro IT Job Hound ITTV
IT Library Technology Resource Directory Connected Home Windows Excavator Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 Copyright © 2008 Penton Media, Inc., All rights reserved. Terms and Use | Privacy Statement | Reprints and Licensing