Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Remove NonPresent Devices

Posted on 2010-11-09
7
Medium Priority
?
684 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
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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

OfficeMate Freezes on login or does not load after login credentials are input.
On some Windows 7 (SP1) computers, Windows Update becomes super slow even the computer is reasonably fast.  There's one solution that seemed to have worked well for me (after trying a few other suggested solutions).
This Micro Tutorial will give you basic overview of the control panel section on Windows 7. It will depth in Network and Internet, Hardware and Sound, etc. This will be demonstrated using Windows 7 operating system.
The viewer will learn how to successfully download and install the SARDU utility on Windows 8, without downloading adware.
Suggested Courses

885 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