?
Solved

Remove NonPresent Devices

Posted on 2010-11-09
7
Medium Priority
?
676 Views
Last Modified: 2012-05-10
Does anyone have a faster way to remove the "greyed" out nonpresent devices from device manager? We are doing refurb work on electronic devices using several virtual machines (running off a Windows 7 machine) and the plugging/unplugging is creating a long list of formerly loaded drivers. Any help would be appreciated.
0
Comment
Question by:lleblanc65
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 66

Assisted Solution

by:johnb6767
johnb6767 earned 500 total points
ID: 34094594
If you can identify what device it is in the registry, it can easily be scripted.....

Usiong a combination of Process Monitor, and Device Manager, it can easily be identified.....

Set Process Monitor to include the Operation "RegDeleteKey", and look for the successes at the fololowing parent key....

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum

Thats where the device information is stored.

Then once you identify them....

reg delete "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\SubKey\Subkey" /f
0
 
LVL 66

Expert Comment

by:johnb6767
ID: 34094604
Also, I assume you are referencing the method here....

set devmgr_show_nonpresent_devices=1
start devmgmt.msc

form "Device Manager does not display devices that are not connected to the Windows XP-based computer"
http://support.microsoft.com/kb/315539/en-us
0
 
LVL 66

Expert Comment

by:johnb6767
ID: 34094613
If you know the classes/HW IDs of the devices as well, you can delete all of them using Devcon....

The DevCon command-line utility functions as an alternative to Device Manager
http://support.microsoft.com/kb/311272
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 10

Accepted Solution

by:
tmoore1962 earned 500 total points
ID: 34094734
I am assuming you are referring to USB devices, Google "USBdeview"  it is a freeware app avail for both 32bit and 64bit systems.  It will list all USB devices that have been connect and I believe you can remove them using the app also.
0
 

Author Comment

by:lleblanc65
ID: 34103533
Guys, thanks for the suggestions. Tmoore - the USBDeview was perfect. I am also looking into the scritping aspect for the future, thanks johnB
0
 
LVL 66

Expert Comment

by:johnb6767
ID: 34108853
Glad we could help....
0

Featured Post

Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

While working, an annoying popup showing below will come and we cannot cancel or close it form the screen. The error message will come again and again.
Microsoft will be releasing the Windows 10 Creators Update in just a matter of weeks. Are you prepared? Follow these steps to ensure everything goes smoothly and you don't lose valuable data on your PC.
In this Micro Tutorial viewers will learn how to use Boot Corrector from Paragon Rescue Kit Free to identify and fix the boot problems of Windows 7/8/2012R2 etc. As an example is used Windows 2012R2 which lost its active partition flag (often happen…
This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.
Suggested Courses

719 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question