Author Topic: How to slim down and tweak (kill) your Windows XP installation  (Read 216370 times)

Offline LeoniAquila

  • Retired moderator
  • Comodo's Hero
  • *****
  • Posts: 6745
Me and Soya have been discussing this a lot via PM:

http://www.wincert.net/forum/index.php?s=e3cb0f4c673c705f17492735d71f96e4&showforum=122

Now I'm starting a thread so we all can share our stupid ideas and experiences of how to make our systems really, really slim. I want to see Ragwing in this thread!

(:HUG)

LA

EDIT: As this thread has come to page 40 when I'm writing this (2008-07-24), I thought it was time to make a little summary. So:



Short summary of how to slim down your Windows XP, strictly based on my system/needs/experiences

Introduction

Why slim down Windows? Because there are, in most cases, a ton of files and functions you won't need. Your system will be much faster, and more secure. Since there are very few security functions in Windows (Data Execution Prevention [DEP], Firewall, File Protection [SFC]), the more you remove the safer it'll be. You will remove vulnerabilities that usually require patches or special settings (like disabling the function). At least this is my belief. It may be questionable, but for me personally, I've encountered less problems on a slimmed system because a slimmed system is a controlled system - it's easy to monitor what's going on.

This guide is aimed mostly to inexperienced users who are willing try the "learning by doing" thing. It may take your Windows folder from gigabytes to a couple of hundreds of megabytes. My own Windows installation is currently 227+ 13 MB (Windows + themes & installers). Be aware, many things in the guide may cause irreversible damages to your Windows installation. Then you will have to start all over. Don't forget to back up all your personal files, settings etc! I'm not responsible for any problems!

I'll make it all step by step, to guide you from a bloated installation to a slimmed installation. I also recommend you to use nLite, it will make things easier. If you haven't ever used nLite, then that will require a lot of attention on its own. It's a program to modify an existing Windows XP Setup CD, you can add Windows service packs, hotfixes, remove components etc. and nLite will finalize a bootable CD for you. This is a great start for a slimmed Windows.

As this guide is based strictly on my own system/needs/experiences, here are the prerequisites:

1. Hardware: I have an Acer Laptop machine, 1.8 GHz, 1024+256 MB RAM, 80 GB HDD. No other fancy hardware, no portable things, no router etc. - just a pure laptop whith a USB mouse and a couple of USB sticks when needed. Internet comes via an ordinary network cable, to an ordinary network card. My IP address is static.

2. Software: Other than Windows XP Home SP3 and Internet Explorer (IE) 6 I have no Microsoft software.
  • 7-Zip. No dependencies.
  • Adobe Reader Lite. Needs Windows Installer + DCOM Server Process Launcher services.
  • Bryce. No dependencies.
  • CCleaner. No dependencies.
  • COMODO Firewall Pro. Needs IE for automatic update.
  • DC++. No dependencies.
  • Diino. Probably needs IE.
  • GIMP. No dependencies (just GTK+ which it installs by itself).
  • InfraRecorder. No dependencies.
  • Internet Explorer. No dependencies.
  • JkDefrag. No dependencies.
  • Media Player Classic. No dependencies.
  • NT Registry Optimizer. No dependencies.
  • OpenOffice.org. Needs Windows Installer + DCOM Server Process Launcher services.
  • Opera. Needs Windows Installer + DCOM Server Process Launcher services, unless you chose Classic Installer.
  • RegSeeker. No dependencies.

3. Other: What I do on my machine is delimited by the programs above. As you can see, for example, I don't play games on this machine. Furthermore, it's my personal machine, meaning that there is only one Windows user account.

Finally, I'll bring up what I've kept rather than removed. That's an easier approach. You will see what I've kept in order to run Windows, stable, with support for the programs mentioned above. By the way, even though all programs seem to run fine, I'm not sure they work completely.

Finally again, my system have no problems whatsoever, but there is sometimes an error reported in the Windows Event Log. It doesn't worry me, though.



The guide

Here's the fun part. :)

1. Use nLite on an existing Windows XP Setup CD.

This step is not necessary, but again, it'll make things easier. Take a look in our nLite thread. Remove as much as you can - I won't go through it all here - and install your Windows XP (preferably SP3 if you ask me). This will be a fresh start.

One important thing I disabled in my Windows XP Setup CD was the Windows File Protection - SFC. Disabling SFC will make it much easier to delete files manually, which you will have to do later, to slim down Windows. Otherwise, some things you delete will be recreated by Windows. Furthermore, disabling SFC is done very smoothly with nLite, whilst disabling it manually is quite tricky if you're on SP3. You will have to fool Windows so it thinks you've booted in safe mode. I don't think that's a good idea, so use nLite to disable SFC.

EDIT 2008-08-03: Here's a description from Ragwing of how to delete SFC! Thanks Rag!

2. Windows startup: only CFP!

I have COMODO Firewall Pro as my only protection at this machine, thus this is the only startup item. This is easy to manage in CCleaner. If you also have ctfmon.exe starting up, then you probably haven't used nLite enough!

3. Analyze which Windows services you need.

Windows runs services in the background, which provides support for many functions - functions you can remove. But first, disable the services. Many services are also the reason to some of the processes you see in Task Manager. E.g. you probably have many svchost.exe - I only have two, thanks to my layout of services.

Start at Start Menu -> Run -> services.msc

Take a look at Black Viper's guide. Determine which services you need. Here's my complete layout:

Automatic (these services are started)
COMODO Firewall Helper Service
DHCP Client
Event Log
Plug and Play
Remote Procedure Call (RPC)
Themes
Windows Audio

Manual (these services are stopped but Windows starts them on demand)
Application Management
Cryptograhpic Services
Windows Installer

Disabled (I enable these myself, on demand)
DCOM Server Process Launcher (needed for Windows Installer!)
Network Connections (needed to activate Windows online!)
Print Spooler (needed for PDF printing!)
Task Scheduler (needed for Prefetch, which I'll return to later)

All other services have been removed since it's very unlikely that I'll need them, and if I'll do, well I have to reinstall Windows. To remove a service, double click on it in the Services manager. Take the name, e.g. 'wuauserv' for Automatic Updates. Then start the Command Prompt, and type 'sc delete name' - without the ' and replace name with the service name (like wuauserv).

What may differ in your layout of services is e.g. what you need to establish an internet connection.

4. Install your programs.

I actually recommend to install the programs you need before slimming down. This way you will be able to try them, while slimming down Windows, and make sure they run fine. If you did the opposite, there would be a risk that you made a hard down-slimming and then found out that a program doesn't work - and you couldn't tell why. It may be a painful learning process if your programs differ much from mine, and most important; have certain dependencies.

5. Time to delete files and folders!

Before you delete, make a backup of the folder/file, and test if your system still works. If it still works after a couple of days and reboots, you'll have a lot to gain by cleaning the Windows registry. That's #6 though.

Now, first of all let me point you to the very guide that was the cause of this thread, in the first place: Slimming Down Windows XP by Bold Fortune (many, many thanks to you if you see this! :)).

BF's guide is a great description of files and folders. I will only describe which folders I've kept - going through files would be too much, BF has already done that.

So what have I kept? With the prerequisites of my system, needs, programs etc:

Documents and Settings
All Users
LL [my profile]
NetworkService

Thanks to disabled services I could remove LocalService, and since I won't ever manage any user accounts I removed Default User. Keep that folder if you have to create a new account some time.

Program Files\Common Files
[Nothing Microsoft related at all]

WINDOWS
Cursors*
Debug
Fonts
Installer**
Prefetch***
Resources
system32
Temp
WinSxS

* You can delete it, I kept it for some fancy mouse cursors

** Here are .msi packages in case any of your programs uses such files, e.g. OpenOffice.org, Adobe Reader. I kept it, so I can uninstall/reinstall these programs.

*** Prefetch speeds up Windows booting, and it is said to speed up application launches. I've set prefetch to work only for booting. Here's how (value "2" in my case). When you've set it to 2, clear the folder -> enable the service Task Scheduler -> reboot -> leave computer idle for at least 15 minutes -> two files have been recreated in Windows\Prefetch. Then you can disable Task Scheduler again.

There are two quite important folders missing:
1) Driver Cache - when you plug in a USB stick or any other hardware, Windows will look here for drivers. I've removed it from my system, after I plugged in all my USB hardware, but I kept a backup in case I need to plug in a new USB stick.
2) inf - BF says it's important and he's the master of slimming down XP. Still, I do fine without it, but in case I'd need it some day I have a backup of this folder as well.

Finally, for the WINDOWS folder, I only have these four files: explorer.exe, hh.exe, regedit.exe and winhlp32.exe.

WINDOWS\system32
config*
drivers
Macromed

* In this folder you may be able to delete all of the folder systemprofile.

The chances of having only these three folders (if you don't even have Flash, skip "Macromed") is probably little, but obviously it's possible. I really don't have any other folders in system32 and I would repeat myself if I told you "this system works great". To delete some folders you may have to boot in safe mode.

6. Clean the registry.

So, you've deleted a bunch of folders and files, and now your Windows folder is sub 300 MB? Have you run your system for a while so you know it works? Great, let's proceed. Now comes the truly irreversible part - at least it's not even completely safe to make a backup here. In fact, I once cleaned the registry, and then ran into some problems. I thought "OK, let's restore the registry"... well, for some reason that didn't work.

This time I was really lucky in my registry cleaning, it's unbelievable how much I removed. First, the gentle approach of CCleaner, then the real killer: RegSeeker. RegSeeker finds "green" and "red" entries, of which the green ones should be safe to remove. In the example above they turned out to be non-safe to remove... but on my current installtion, I have removed ALL entries found by RegSeeker (and CCleaner) - green and red, and also, the "invalid services" that RegSeeker may find.

In short, I made one heck of a registry clean up - after I deleted all those Windows files - and my system still runs fine.

After cleaning the registry, run a defragmenter. NTREGOPT is great! After running this program, it reported my registry to have a size of 8.9 MB which I think is quite small.

7. Finalize your Windows installation.

Finalize your super-slimmed Windows XP installation by doing tweaks you haven't done already, and make sure Windows is updated with the latest patches.

As you've installed everything now, and deleted all junk (CCleaner!), run a disk defragmenter.



Finally, see the attached screen shots (for registered users only). They show what I've described above.

I hope you enjoyed the guide and got some tips from it. :)

LA

[attachment deleted by admin]
« Last Edit: January 20, 2009, 05:38:10 PM by LeoniAquila »

soyabeaner

  • Guest
Re: How to slim down (kill) your Windows XP installation
« Reply #1 on: May 19, 2008, 01:47:17 PM »
I can believe you actually started this thread after all (:CLP).

Offline LeoniAquila

  • Retired moderator
  • Comodo's Hero
  • *****
  • Posts: 6745
Re: How to slim down (kill) your Windows XP installation
« Reply #2 on: May 19, 2008, 03:32:15 PM »
But maybe there isn't so much to discuss. :-[ Or is there? :)

LA

Offline Melih

  • CEO - Comodo
  • Administrator
  • Comodo's Hero
  • *****
  • Posts: 14662
    • Video Blog
Re: How to slim down (kill) your Windows XP installation
« Reply #3 on: May 19, 2008, 04:02:34 PM »
its a good idea..
lets start the thread!

Melih

Offline LeoniAquila

  • Retired moderator
  • Comodo's Hero
  • *****
  • Posts: 6745
Re: How to slim down (kill) your Windows XP installation
« Reply #4 on: May 19, 2008, 05:33:43 PM »
its a good idea..
lets start the thread!

Melih

OK, funny that you're joining :)

I'm not sure where to start. What I've been discussing with Soya is mainly related to the size of the Windows folder, in particular the system32 folder. It seems like I've been clearing my system32 folder just as much as Soya, but still his folder is much smaller. One theory is that my OpenOffice.org installation has put files in system32, which Soya hasn't (because he uses AbiWord). My main theory is that SP3 has put stuff in system32 that Soya hasn't, because he's on SP2.

Anyway, here's some current status (hey Ragwing, I'd like to see the layout of your folders ;)):

C:\WINDOWS (with folders and files) - 438 MB, 1893 files, 79 folders.
C:\WINDOWS\system32 (with folders and files) - 373 MB, 1615 files, 31 folders.

The sizes are "size on disk".

There are probably hundreds of files left possible to remove, I haven't followed all steps of the guide.

I'm also posting screenshots to show which folders are left, hoping to inspire some of you and maybe raise a discussion. :)

LA

[attachment deleted by admin]

soyabeaner

  • Guest
Re: How to slim down (kill) your Windows XP installation
« Reply #5 on: May 19, 2008, 05:54:57 PM »
Yea, and a FYI to all: LA & my XP's are already nLite'd and we're clean freaks ;D

I should've slipstreamed WMP 10 rather than installing it separately on top of WMP 9.  Too late for regrets.

Offline LeoniAquila

  • Retired moderator
  • Comodo's Hero
  • *****
  • Posts: 6745
Re: How to slim down (kill) your Windows XP installation
« Reply #6 on: May 19, 2008, 06:28:25 PM »
Update: total size of system32 folder has suddenly gone from 373 MB to 315 MB. Hopefully I'll still be able to boot tomorrow. ;D

LA

EDIT: it does boot and run fine, this far.
« Last Edit: May 19, 2008, 06:53:01 PM by LeoniAquila »

Offline LeoniAquila

  • Retired moderator
  • Comodo's Hero
  • *****
  • Posts: 6745
Re: How to slim down (kill) your Windows XP installation
« Reply #7 on: May 19, 2008, 07:08:33 PM »
Here comes the most important (why? I've taken the lead from Soya) update: the size of all files in system32 (no folders included) is 248 MB. :BNC

Complete system32 folder is now down at 294 MB, and complete Windows folder is 360 MB. Well, "complete" is relative... at least the system is running fine and I have CFP protecting.

LA

soyabeaner

  • Guest
Re: How to slim down (kill) your Windows XP installation
« Reply #8 on: May 19, 2008, 07:24:04 PM »
take a peek at event viewer log

Offline adchia

  • Computer Security Testing Group
  • Comodo Member
  • *****
  • Posts: 44
Re: How to slim down (kill) your Windows XP installation
« Reply #9 on: May 19, 2008, 09:03:37 PM »
Heh. Nice to see that bold's stuff is coming on here.

I've used bold's slimming down windows guide for a while, consistently getting my WINDOWS folder in sub 150 megs. gotta luv him.
Current Setup:
Firewall: Comodo Firewall Pro 2.4
Anti-Spyware: Spyware Terminator
Anti-Virus: Comodo Antivirus 2.0.8.20
Registry Cleaners: Regseeker (modified exclude.ini), Easycleaner, CCleaner
Disk Cleaners: Find Junk Files 3.00, Disk Cleaner, CCleaner, Dustbuster

Offline panic

  • Global Moderator
  • Comodo's Hero
  • *****
  • Posts: 11797
  • Linux is free only if your time is worthless.;-)
Re: How to slim down (kill) your Windows XP installation
« Reply #10 on: May 20, 2008, 01:04:40 AM »
LOL. Due to work requirements and environments, one of my PCs SYSTEM32 folders is 778MB (4,274 files and 277 folders).

Although it is absolutely gargantuan compared to other post in this topic, I'm still working away quite happily.

Out of curiousity, other than a feeling of accomplishment, what are the practical benefits of trimming these folders?

Cheers,
Ewen :-)
As your mums would say, "If you can't play nice with all the other kiddies, go home".
All users are asked to please read and abide by the  Comodo Forum Policy.
If you can't conform, don't use the forum.

Offline eXPerience

  • Left the Forums
  • Comodo's Hero
  • *****
  • Posts: 6958
  • Free Forever !
Re: How to slim down (kill) your Windows XP installation
« Reply #11 on: May 20, 2008, 03:24:46 AM »
Here comes the most important (why? I've taken the lead from Soya) update: the size of all files in system32 (no folders included) is 248 MB. :BNC
LOL, my vista non-vlited is on 3.01 GB  88) Normally i already would have vlited it but I'm still searching for all drivers first  ;)

Xan

Offline LeoniAquila

  • Retired moderator
  • Comodo's Hero
  • *****
  • Posts: 6745
Re: How to slim down (kill) your Windows XP installation
« Reply #12 on: May 20, 2008, 03:36:35 AM »
take a peek at event viewer log

Sure there are errors, but those have been there ever since I disabled services. All errors except one in Event Viewer / System are related to the same thing: DCOM service is disabled. And there are two kinds of errors in Event Viewer / Application. Wish I could disable the Event Log service, but that'll cause an unacceptable bootup delay. :-\

Heh. Nice to see that bold's stuff is coming on here.

I've used bold's slimming down windows guide for a while, consistently getting my WINDOWS folder in sub 150 megs. gotta luv him.

Very impressing! :o - But how much functionality do you have left, really?

Out of curiousity, other than a feeling of accomplishment, what are the practical benefits of trimming these folders?

I hope there are speed improvements, but I do it mainly out of principles. Don't like to have old junk (e.g. DOS-files) left in the system folder.

LOL, my vista non-vlited is on 3.01 GB  88) Normally i already would have vlited it but I'm still searching for all drivers first  ;)

LOL, I hope you'll get there. ;)

LA

Josh123

  • Guest
Re: How to slim down (kill) your Windows XP installation
« Reply #13 on: May 20, 2008, 05:04:50 AM »
Me and Soya have been discussing this a lot via PM:

http://www.wincert.net/forum/index.php?s=e3cb0f4c673c705f17492735d71f96e4&showforum=122

Now I'm starting a thread so we all can share our stupid ideas and experiences of how to make our systems really, really slim. I want to see Ragwing in this thread!

(:HUG)

LA

Some off those tweaks, etc might not be so obvious & easy for the average user... When I try to delete one of the SYSTEM32 files for the services on startup, I get a Error reading I can't delete it.

Josh

Offline LeoniAquila

  • Retired moderator
  • Comodo's Hero
  • *****
  • Posts: 6745
Re: How to slim down (kill) your Windows XP installation
« Reply #14 on: May 20, 2008, 05:55:28 AM »
Some off those tweaks, etc might not be so obvious & easy for the average user... When I try to delete one of the SYSTEM32 files for the services on startup, I get a Error reading I can't delete it.

Josh

True. He proposes deleting many, many things that require SFC to be disabled. Maybe it says somewhere in the guide that one has to disable SFC, or he just assumes that all users have done that already...

Btw. my standby functionality has gone bad. Of course I expected problems when deleting so many system files, but that doesn't mean it's fun to encounter the errors. :(

LA

 

Free Endpoint Protection
Seo4Smf 2.0 © SmfMod.Com Smf Destek