Monday, January 15, 2007

Put Muscle in Your Device Manager!

In WindowsXP and 2000, the Device Manager is an indispensible tool for keeping your system healthy. There are several different ways to access Device Manger, and they all require at least two steps before the console opens. In order to effectively diagnose problems you should always click the 'view' button and select "show hidden devices".

I've written a small batch file I keep handy on the desktop, that opens Device manager with a simple double-click. Just copy and paste this in Notepad:

set DEVMGR_SHOW_NONPRESENT_DEVICES=1
start devmgmt.msc

Then "Save as type" = "All Files", and name the file "setdev.bat" (without the quotes!).

When the console opens you'll still need to select "show hidden devices", only now you really will be able to see ALL the hidden devices that Windows so dutifully keeps in the registry.

How does that affect performance? Simple; Unless you already are in the habit of keeping things tidied up on a regular basis, every device you've ever installed then later removed will be right there with a greyed-out icon. And every time you boot, Windows has to sort through all that garbage before it can run the devices that actually are installed.

To demonstrate the difference: In the view below is the standard Device Manager on the left, and on the right is the Device Manger opened with the "setdev.bat" file.



On the left you can see nine generic volumes {which represents two hard drives partitioned into four volumes each, and one USB flash drive}. On the right you can see those same nine generic volumes and seven 'hidden' volumes. Those hidden volumes reflect the fact that I recently replaced a hard drive, and repartitioned the remaining drive. This is only one example of what you can clean-up. The same is true for all the rest of the devices.

I'm gonna' get busy and uninstall all this crap!

5 comments:

Anonymous said...

Very Technical!!!! this not dangerous?

Ashish said...

i havent tried yet.. if you try .. dont forget to leave your feedback here... thanks

Anonymous said...

Ashish, this your new blog right? Of course I am interested. After adding me, just drop by and tell me, I'll add you.

Ashish said...

Yes, YP... this is my new blog...
I added your website.

DRH said...

Thanks Ashish,

I found this bit of gold whilst looking for a way to diagnose a mount failure for a USB device.

msinfo32 showed the device but WinXPP wouldn't mount it. It turned out to be a botched driver install. Reinstalling the driver fixed the problem.

Many thanks,

David