Solved

Remove NonPresent Devices

Posted on 2010-11-09
7
668 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 125 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
Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

 
LVL 10

Accepted Solution

by:
tmoore1962 earned 125 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
 
LVL 1

Expert Comment

by:Mighty_
ID: 34094755
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

Building an interactive eFuture classroom

Watch and learn how ATEN provided a total control system solution including seamless switching matrix switch, HDBaseT extenders, PDU, lighting control to build an interactive eFuture classroom.

Question has a verified solution.

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

Suggested Solutions

New Windows 7 Installations take days for Windows-Updates to show up and install. This can easily be fixed. I have finally decided to write an article because this seems to get asked several times a day lately. This Article and the Links apply to…
The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
This Micro Tutorial will teach you the basics of configuring your computer to improve its speed. It will also teach you how to disable programs that are running in the background simultaneously. This will be demonstrated using Windows 7 operating…

733 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