jump to navigation

Windows Server 2008 Core Footprint Reduction June 27, 2010

Posted by John Ruby in Solutions.
trackback

 

Windows Server 2008 Core Footprint Reduction
Reduce Your Windows 2008 Server Core Installation by ~200MB

In Windows Server 2008, Server Core installation does not include the traditional full graphical user interface (GUI). A Server Core installation provides a minimal environment for running specific server roles, which reduces the maintenance and management requirements and the attack surface for those server roles. A server running a Server Core installation supports the following server roles:

  • Active Directory Domain Services (AD DS)
  • Active Directory Lightweight Directory Services (AD LDS)
  • DHCP Server
  • DNS Server
  • File Services
  • Print Services
  • Streaming Media Services
  • Internet Information Services (IIS)
  • Windows Virtualization (Hyper-V)

Although Server Core is a lot smaller in size than a regular full-GUI Windows Server 2008 installation, the Server Core blog has recently written about an interesting way to further reduce this footprint by removing the server roles and optional features that you do not require from the disk. By doing so, you can free up more space. It is estimated that you will be able to free up as much as 200 MB of disk space if you remove all un-needed roles and features. This procedure could be used to prevent an administrator from adding a role or feature to a server that is supposed to perform a fixed function.

Warning: Removing a role or feature from the hard disk is irreversible. Once a role or feature is removed, the only option is to reinstall; there is no way to bring it back.

An even greater warning: Be very careful to comment out any line that has a role you’re currently running! If you run this script on a Windows Server 2008 machine that already has that specifc role installed, this will remove it completely and render the machine useless…

To remove roles or features from a Server Core installation please follow these steps:

1. Run the following command in the command prompt window:

pkgmgr /up:<package to remove>

2. Reboot the server.  Note that it is possible to remove multiple packages before having to reboot.

3. Wait approx 30 minutes for the disk cleanup. This is important.

You will then notice:

  • the disk space used by the role or feature is freed up
  • oclist doesn’t show the role or feature as being available
  • trying to install using ocsetup results in an error

 

Comments»

No comments yet — be the first.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: