Sysprep on Windows XP - clean up non-existent devices
Posted on 2004-05-03
My goal is to have a ghost image that can be restored to a PC with different hardware. Before bothering to test on *different* hardware, I tested sysprep with the *same* hardware first:
(1) used -bmsd to build the mass storage controller sections in sysprep.inf
(2) run sysprep -mini -activated -reboot
(3) Let the mini setup finish upon reboot
The system did come up successfully, but I noticed the boot process was *much* slower. After I logged on, I checked the "Non PnP drivers" in device manager. There were many orphan devices which were not present before sysprep - e.g. abp480n5, adpu160m (God knows what they are).
In fact, before sysprep there were 32 non-PNP devices; afterwards there were 75 of them. Hence there ware 75-32 = 43 orphans.
I checked the doc and there was a -clean switch that "cleans up critical non-existent devices". I run sysprep with this switch but it appeared to do nothing. These orphans were still there.
My question: how do I remove these orphan devices? (manual one-by-one removal from device manager is not acceptable).