Lotus what? Nah mate, the world has moved on.

Saturday, 28 September 2013

Reducing the bloat ware in Windows Server 2008



Have you ever had to create a template server or a one off and found that Windows 2008 eats disk space for breakfast. One would think 10 GB is plenty for a server OS but you would be wrong.

C:\Windows\SoftwareDistribution\ takes up a lot of space and then there is, wait for it, tahdah, c:\Windows\winsxs.

You get the call at an odd hour of the day "Your server has crashed again, it is rubbish, blah blah blah". One look at drive C gives the answer. 0 MB space left. Huh, the server had 50 GB allocated. Ha ha ha, not enough, MS strikes again. As you add service packs etc this directory just grows and grows.

Here is how to (kinda) fix this. Be warned though, this is a one way street with no return. Once you remove a role it can never be restored.

http://technet.microsoft.com/en-us/library/cc749465(v=ws.10).aspx

pkgmgr /up:Microsoft-Hyper-V-Package~31bf3856ad364e35~amd64~~6.0.6001.18000
pkgmgr /up:Microsoft-Windows-BLB-Package~31bf3856ad364e35~amd64~~6.0.6001.18000
pkgmgr /up:Microsoft-Windows-DFSN-ServerCore~31bf3856ad364e35~amd64~~6.0.6001.18000
pkgmgr /up:Microsoft-Windows-DFSR-ServerEdition-Package~31bf3856ad364e35~amd64~~6.0.6001.18000
pkgmgr /up:Microsoft-Windows-FailoverCluster-Core-Package~31bf3856ad364e35~amd64~~6.0.6001.18000
pkgmgr /up:Microsoft-Windows-FileReplication-Package~31bf3856ad364e35~amd64~~6.0.6001.18000 
pkgmgr /up:Microsoft-Windows-MultipathIo-Package~31bf3856ad364e35~amd64~~6.0.6001.18000
pkgmgr /up:Microsoft-Windows-NetworkLoadBalancingHeadlessServer-Package~31bf3856ad364e35~amd64~~6.0.6001.18000 
pkgmgr /up:Microsoft-Windows-NFS-ServerFoundation-Package~31bf3856ad364e35~amd64~~6.0.6001.18000
pkgmgr /up:Microsoft-Windows-Printing-ServerCore-Package~31bf3856ad364e35~amd64~~6.0.6001.18000
pkgmgr /up:Microsoft-Windows-QWAVE-Package~31bf3856ad364e35~amd64~~6.0.6001.18000
pkgmgr /up:Microsoft-Windows-RemovableStorageManagementCore-Package~31bf3856ad364e35~amd64~~6.0.6001.18000
pkgmgr /up:Microsoft-Windows-SecureStartup-OC-Package~31bf3856ad364e35~amd64~~6.0.6001.18000
pkgmgr /up:Microsoft-Windows-SNMP-SC-Package~31bf3856ad364e35~amd64~~6.0.6001.18000
pkgmgr /up:Microsoft-Windows-SUA-Core-Package~31bf3856ad364e35~amd64~~6.0.6001.18000
pkgmgr /up:Microsoft-Windows-Telnet-Client-Package~31bf3856ad364e35~amd64~~6.0.6001.18000

This may be needed if setting up an AD server.

pkgmgr /up:Microsoft-Windows-DhcpServerCore-Package~31bf3856ad364e35~amd64~~6.0.6001.18000
pkgmgr /up:Microsoft-Windows-DirectoryServices-ADAM-SrvFnd-Package~31bf3856ad364e35~amd64~~6.0.6001.18000
pkgmgr /up:Microsoft-Windows-DirectoryServices-DomainController-SrvFnd-Package~31bf3856ad364e35~amd64~~6.0.6001.18000
pkgmgr /up:Microsoft-Windows-DNS-Server-Core-Role-Package~31bf3856ad364e35~amd64~~6.0.6001.18000
pkgmgr /up:Microsoft-Windows-IIS-WebServer-Core-Package~31bf3856ad364e35~amd64~~6.0.6001.18000
pkgmgr /up:Microsoft-Windows-Internet-Naming-Service-SC-Package~31bf3856ad364e35~amd64~~6.0.6001.18000

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

You can remove IME supportand the supporting fonts.

pkgmgr /up:Microsoft-Windows-ServerCore-EA-IME-Package~31bf3856ad364e35~amd64~~6.0.6001.18000
pkgmgr /up:Microsoft-Windows-ServerCore-EA-Fonts-Package~31bf3856ad364e35~amd64~~6.0.6001.18000

To enlarge the virtual box disk run:

VBoxManage modifyhd "/home/rayd/VirtualBox VMs/TemplateServer/TemplateServer.vdi" --resize 25000

If you used a simple disk in Windows then simply click on enlarge.

To increase the license use this:

slmgr.vbs /rearm

slmgr.vbs -dli

Done.

0 comments :

Post a Comment

Thank you for taking the time to comment. Your opinion is important and of value and we appreciate the positive feedback! If you are "Negative Nancy" then please do us, and humanity, a favor, and piss off.

Total Pageviews

Google+ Followers

Pages

Blog Archive

Popular Posts

Recent Comments

Rays Twitter feed

Ads

Web sites come and go and information is lost and therefore some pages are archived. @rayd123 . Powered by Blogger.