Welcome to TechNet Blogs Sign in | Join | Help

Reducing the Server Core disk footprint

In the Server Core installation option, there is a way to remove the server roles and optional features from the disk, to free up more space. In addition to reducing disk usage, this could be used to ensure an administrator doesn’t add a role or feature to a server that is supposed to perform a fixed function.

Warning: This is a one way operation, once you remove a role or feature there is NO way to bring it back. If you realize later that you need the role or feature the only option is to reinstall.

To do this:

1.       Run: pkgmgr /up:<package to remove>

2.       Reboot – you can remove multiple packages before rebooting.

3.       Wait about 30 minutes for the disk cleanup to occur.

You will then see the disk space used by the role or feature is freed up, oclist will no longer show the role or feature as being available, and trying to install it using ocsetup will result in an error. Once again, read the warning above – there is no way to put the role or feature back, it is permanently gone from the system.

The role and feature packages available for removal are:

·         Microsoft-Hyper-V-Package~31bf3856ad364e35~amd64~~6.0.6001.18000

·         Microsoft-Windows-BLB-Package~31bf3856ad364e35~amd64~~6.0.6001.18000

·         Microsoft-Windows-DFSN-ServerCore~31bf3856ad364e35~amd64~~6.0.6001.18000

·         Microsoft-Windows-DFSR-ServerEdition-Package~31bf3856ad364e35~amd64~~6.0.6001.18000

·         Microsoft-Windows-DhcpServerCore-Package~31bf3856ad364e35~amd64~~6.0.6001.18000

·         Microsoft-Windows-DirectoryServices-ADAM-SrvFnd-Package~31bf3856ad364e35~amd64~~6.0.6001.18000

·         Microsoft-Windows-DirectoryServices-DomainController-SrvFnd-Package~31bf3856ad364e35~amd64~~6.0.6001.18000

·         Microsoft-Windows-DNS-Server-Core-Role-Package~31bf3856ad364e35~amd64~~6.0.6001.18000

·         Microsoft-Windows-FailoverCluster-Core-Package~31bf3856ad364e35~amd64~~6.0.6001.18000

·         Microsoft-Windows-FileReplication-Package~31bf3856ad364e35~amd64~~6.0.6001.18000

·         Microsoft-Windows-IIS-WebServer-Core-Package~31bf3856ad364e35~amd64~~6.0.6001.18000

·         Microsoft-Windows-Internet-Naming-Service-SC-Package~31bf3856ad364e35~amd64~~6.0.6001.18000

·         Microsoft-Windows-MultipathIo-Package~31bf3856ad364e35~amd64~~6.0.6001.18000

·         Microsoft-Windows-NetworkLoadBalancingHeadlessServer-Package~31bf3856ad364e35~amd64~~6.0.6001.18000

·         Microsoft-Windows-NFS-ServerFoundation-Package~31bf3856ad364e35~amd64~~6.0.6001.18000

·         Microsoft-Windows-Printing-ServerCore-Package~31bf3856ad364e35~amd64~~6.0.6001.18000

·         Microsoft-Windows-QWAVE-Package~31bf3856ad364e35~amd64~~6.0.6001.18000

·         Microsoft-Windows-RemovableStorageManagementCore-Package~31bf3856ad364e35~amd64~~6.0.6001.18000

·         Microsoft-Windows-SecureStartup-OC-Package~31bf3856ad364e35~amd64~~6.0.6001.18000

·         Microsoft-Windows-SNMP-SC-Package~31bf3856ad364e35~amd64~~6.0.6001.18000

·         Microsoft-Windows-SUA-Core-Package~31bf3856ad364e35~amd64~~6.0.6001.18000

·         Microsoft-Windows-Telnet-Client-Package~31bf3856ad364e35~amd64~~6.0.6001.18000

If you are running on an x86 box, change the amd64 above to x86.

In addition to the roles and features listed in oclist, it is also possible to remove IME support as well as the supporting fonts by removing the following packages:

·         Microsoft-Windows-ServerCore-EA-IME-Package~31bf3856ad364e35~amd64~~6.0.6001.18000

·         Microsoft-Windows-ServerCore-EA-Fonts-Package~31bf3856ad364e35~amd64~~6.0.6001.18000

Removing these will reduce the on disk footprint by ~200MB.

 

Andrew

p.s. - don't forget about the warning above

Published Wednesday, April 16, 2008 9:42 AM by amason

Comments

# re: Reducing the Server Core disk footprint

But why is it this way? Please make it addable in R2 or vNext.

Thursday, April 17, 2008 3:42 AM by someone

# Reducing the Server Core disk footprint at the maximum

In the Server Core installation option, there is a way to remove the server roles and optional features

Thursday, April 17, 2008 3:24 PM by Windows Server 2008 blog by Kurt Roggen [BE]

# odchudź serwer core

informacja z cyklu "ciekawostki dla wyciskaczy" - bo czy zwolnienie 2ooMB miejsca na dysku jest faktycznie

Friday, April 18, 2008 5:54 AM by Windows Server 2008

# Ridurre il disk footprint di Windows Server 2008 Core

Sul blog di Windows Server 2008 Core c&#39;&#232; un post interessante per ridurre il footprint del disco

Thursday, April 24, 2008 10:14 AM by ADSide

# Handling Server Core Roles and Features

Server Core is proving to be a versatile infrastructure platform. After installing your basic Server

Thursday, April 24, 2008 3:56 PM by The things that are better left unspoken

# Entfernen von Server-Rollen bei Server Core

Technorati-Tags: Windows Server 2008 Server Core f&#252;r Absolutisten: wem die Optimierung des Server

# Verkleinen footprint Server Core

Als je Windows 2008 Server Core installeert dan betekent dat een veel kleinere Windows omgeving, simpelweg

Wednesday, August 13, 2008 4:14 AM by Jaap's blog

# About Microsoft Hyper-V Server 2008

Microsoft announced the much anticipated Hyper-V Server Stock Keeping Unit (SKU) last week and they intend

Friday, September 12, 2008 10:38 AM by The things that are better left unspoken

# 【IIS7】 FTDセミナー振り返りシリーズ Vol.2

Part II : Windows Server 2008 R2における IIS 変更点 それでは R2 でバージョン以外(それだけってことは無いですな)に何が変わったか見ていきましょう。 ただ、この

Wednesday, February 25, 2009 12:31 PM by Hiroshi Okunushi's Blog ☆ミ
Anonymous comments are disabled
 
Page view tracker