Hi All,
I am facing issue with respect to conflicting drivers because of that,
devices are not getting enumerated in device manager.When I browsed for
solution I got to know that I need to delete hidden devices.I would like to
know if there is a way to write code to delete hidden devices.
Thanks,
shruthi
Look at DEVCON sample code, DEVCON surely can delete a device which is marked as “hidden” from the devmgmt GUI
–
Maxim S. Shatskih
Microsoft MVP on File System And Storage
xxxxx@storagecraft.com
http://www.storagecraft.com
“shruthi kl” wrote in message news:xxxxx@ntdev…
Hi All,
I am facing issue with respect to conflicting drivers because of that, devices are not getting enumerated in device manager.When I browsed for solution I got to know that I need to delete hidden devices.I would like to know if there is a way to write code to delete hidden devices.
Thanks,
shruthi
Hi,
I tried using devcon.It removed only those devices that were installed
using devcon.I would like to know if there is any way to remove hidden
drivers that were installed manually using device manager.
Thanks,
Shruthi
On Sat, Oct 5, 2013 at 12:37 AM, Maxim S. Shatskih
wrote:
> **
> Look at DEVCON sample code, DEVCON surely can delete a device which is
> marked as “hidden” from the devmgmt GUI
>
> –
> Maxim S. Shatskih
> Microsoft MVP on File System And Storage
> xxxxx@storagecraft.com
> http://www.storagecraft.com
>
> “shruthi kl” wrote in message news:xxxxx@ntdev…
>
>
> Hi All,
>
> I am facing issue with respect to conflicting drivers because of that,
> devices are not getting enumerated in device manager.When I browsed for
> solution I got to know that I need to delete hidden devices.I would like to
> know if there is a way to write code to delete hidden devices.
>
> Thanks,
> shruthi
>
>
> —
> NTDEV is sponsored by OSR
>
> Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev
>
> OSR is HIRING!! See http://www.osr.com/careers
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>
Exactly what did you try with DEVCON? Show us the command line.
Does the devnode you are trying to delete get shown by DEVCON when using the
FIND command with appropriate arguments?
Is the devnode you are trying to delete for a device that is present
(attached) in the system or one that is removed (detached)?
If you can delete it with Device Manager you can delete it with DEVCON.
For devnodes that are not present it takes a bit more work. One must first
find the device with the FINDALL command and then delete it with an explicit
Device Instance ID.
There is no equivalent to FINDALL for REMOVE or the other commands that
operate on a device node.
Good Luck,
Dave Cattley
Hi Dave,
I am able to remove hidden devices using the devcon.But few hidden devices
are still there and they cannot be uninstalled even from device manager
manually.By using devcon remove cmd, those hidden devices are not removed.
I used the below command to remove the device.
devcon -r remove “@USB\VID_x&PID_y&MI__z\7&1234&0&0000”
Please let me know if I need to do any other settings.
I also found that in registry for that entry is readonly.I am not able to
edit the permissions.
Thanks,
Shruthi
On Mon, Oct 7, 2013 at 5:48 PM, Dave Cattley wrote:
> Exactly what did you try with DEVCON? Show us the command line.
>
>
>
> Does the devnode you are trying to delete get shown by DEVCON when using
> the FIND command with appropriate arguments?
>
> ****
>
> Is the devnode you are trying to delete for a device that is present
> (attached) in the system or one that is removed (detached)?
>
>
>
> If you can delete it with Device Manager you can delete it with DEVCON.
> For devnodes that are not present it takes a bit more work. One must
> first find the device with the FINDALL command and then delete it with an
> explicit Device Instance ID.
>
> ****
>
> There is no equivalent to FINDALL for REMOVE or the other commands that
> operate on a device node.
>
>
>
> Good Luck,
>
> Dave Cattley ****
>
> —
> NTDEV is sponsored by OSR
>
> Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev
>
> OSR is HIRING!! See http://www.osr.com/careers
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>
>But few hidden devices are still there and they cannot be uninstalled even from device manager manually
I’m afraid I am out of suggestions. If you cannot remove it with Device Manager then you probably cannot remove it with DEVCON.
You should probably look very carefully at any data logged in SETUPAPI.*.LOG for clues as to what is going on.
Good Luck,
Dave Cattley