Note: The “slow bootup” issue or “machine stops responding” issue can be caused by many different reasons. The problem described in this KB article is a very rare issue and mostly you won’t experience it. Before trying the solution in this article, please make sure you are really experiencing this specific scenario. To check if how many device instances have been stored on your computer, open the Registry Editor and check the relative registry keys, such as HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB.
How to remove registry information about devices that will never be used again on a computer that is running Windows Server 2003, Windows Server 2008, or Windows Server 2008 R2
Note: The Win32 console application mentioned in this article is just a sample for illustration only. You will need to understand how it works and modify it as needed. For example, for the typical USB devices, you may need to add some other GUIDs like below. Please refer to Windows SDK to get more information about the background information about this issue and modify it according your specific requirements.
Article ID: 2792160 - Last Review: Dec 7, 2012 - Revision: 1