Windows IT Pro is the leading independent community for IT professionals deploying Microsoft Windows server and client applications and technologies.
  
  
  Advanced Search 


July 2009

Five Ways to Manage Server Core

Get reacquainted with the command line
RSS
Subscribe to Windows IT Pro | See More Systems Administration Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!

Executive Summary:
Server Core (Windows Server 2008's alternative OS installation) provides several command-line management options.

If you've taken the time to install Server Core—Windows Server 2008's alternative OS, with its lighter footprint and smaller attack surface—you've been struck by the return of the much loved/hated command line. I don't mean PowerShell (available in Server 2008 R2), but the old cmd.exe. As you dust off your DOS guides and refresh your memory about how to use the command line, you'll need to attend to several other important tasks as well.

First, you need to configure your Server Core system: Join the domain, and possibly change computer names, IP address configuration, firewall settings, Windows Update settings, and so on. Second, you need to enable the roles and features that you want to run under Server Core. Note that Server Core doesn't include Server Manager, so you'll have to use the OCList and OCSetup command-line tools. (For more information about configuring Server Core, see Top 10, "Essential Server Core Setup Commands.") Finally, you need to manage your Server Core system.

The five Server Core management techniques I present here include one local method and four remote methods. Only one of the methods uses a GUI console—so get ready to re-embrace the command line.

1. Local Command Prompt
The easiest way to manage Server Core is to use the local command prompt (i.e., cmd.exe). If you prefer to use a GUI tool to configure Server Core, you can download the Server Core Configurator from www.codeplex.com/CoreConfig. You can use several GUI tools within Server Core as well, such as Notepad, Taskmgr (for Task Manager), Regedit (for the Registry Editor), timedate.cpl (for the Date and Time applet) and intl.cpl (for the Regional and Language Options applet).

For more information about configuring Server Core, including configuration commands, see Microsoft's "Server Core Installation Option of Windows Server 2008 Step-By-Step Guide." For information about specific commands, see the Microsoft TechNet A-Z command-line reference page. Finally, for videocasts about managing Server Core through Terminal Services, RemoteApp, Windows Remote Shell, and MMC snap-ins, see the bulleted list at the end of this article.

2. Terminal Services
If you use Terminal Services to manage Server Core, you're actually connecting remotely for administrative purposes, so you must edit the registry to enable the Remote Desktop for Administration feature. To enable Remote Desktop for Administration on a Server Core system, go to the command prompt and enter

 Cscript c:\windows\system32\scregedit.wsf /ar 0 

You should receive output indicating that the registry has been updated.

If the Server Core system has a firewall enabled, you need to open the RDP port to allow the connection. To open the RDP port, enter

 netsh firewall add portopening TCP 3389 RDP 

Once your Server Core system is set up, open the RDP connection from another system. A quick way to do accomplish this is to enter

 mstsc.exe 

in the Start menu's instant search bar. Then, enter the IP address (or the server name if DNS is configured) and provide the logon credentials. The remote desktop screen will open as a command prompt, with the blue desktop background.

The benefit of this type of connection over a RemoteApp connection (which I discuss in the next section) is that you can still run other applications outside of the command line on your remote desktop. When your work is complete, just enter

 logoff 

to close the connection.

3. Terminal Services with RemoteApp
Using an RDP connection to connect to the entire system might seem like overkill—especially if you only need the command prompt. Alternatively, you can use a new Server 2008 Terminal Services feature called RemoteApp. This feature lets you create an RDP connection that opens only the command prompt rather than the entire desktop. Before you begin, follow my previous instructions to enable Terminal Services connections.

   Previous  [1]  2  Next 


Top Viewed ArticlesView all articles
Command Prompt Tricks

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

WinInfo Short Takes: Week of November 23, 2009

An often irreverent look at some of the week's other news, including some post-PDC some soul searching, a Google Chrome OS announcement and a Microsoft response, Windows 7 off to a supposedly strong start, the Jonas Brothers and Xbox 360, and so much more ...

2009 Windows IT Pro Editors' Best and Community Choice Awards

Picking a favorite product from an impressive crowd of competitive offerings is never an easy task, and such was the case with our Editors' Best and Community Choice awards this year. ...


Related Articles Essential Server Core Setup Commands

The Soul of Windows Server 2008: Server Core and Hyper-V

Related Events Deep Dive into Windows Server 2008 R2 presented by John Savill

Getting ready for Windows 7, eLearning series with Mark Minasi

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 Introducing Left-Brain.com, the online IT bookstore
Looking for books, CDs, toolkits, eBooks? Prime your mind at Left-Brain.com

Discover Windows IT Pro eLearning Series!
Clear & detailed technical information and helpful how-to's, all in our trademark no-nonsense format


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 DevProConnections IT Job Hound
Left-Brain.com Technology Resource Directory asp.netPRO ITTV Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 © 2009 Penton Media, Inc. Terms of Use | Privacy Statement