Windows 7 Forums


Reply
Thread Tools

Looking for an XP registry entry in Windows 7.

 
 
Peter Jason
Guest
Posts: n/a
Thanked:
 
      04-08-2011
In XP there's a registry entry:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USBSTOR
that can be deleted to remove evidence of a thumb drive.

This seems to be missing in Windows 7. Where is the equivalent?

Also, is there some way to remove numerous instances of a name in the
registry? Such as USBSTOR?

Peter


 
Reply With Quote
 
 
 
 
Paul
Guest
Posts: n/a
Thanked:
 
      04-08-2011
Peter Jason wrote:
> In XP there's a registry entry:
> HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USBSTOR
> that can be deleted to remove evidence of a thumb drive.
>
> This seems to be missing in Windows 7. Where is the equivalent?
>
> Also, is there some way to remove numerous instances of a name in the
> registry? Such as USBSTOR?
>
> Peter
>
>


This site, has a script that demonstrates what the Microsoft utility
DEVCON can do. Download the RenewUSB.bat file (it downloads as RenewUSB.txt,
to prevent accidents). You do not want to just run that script verbatim,
but the contents of the script will demonstrate what tools are available.

http://www.robvanderwoude.com/devcon.php

In there, you can see that a command such as

devcon FindAll =USB

will list all the USB devices in Device Manager. I see two
entries that correspond to the two USB flash sticks I own.
I have an external USB enclosure with hard drive, and have
used on occasion, two USB flash sticks (1GB, 8GB).

USB\VID_0325&PID_AC02\AA04012700252303 : USB Mass Storage Device <--- 8GB
USB\VID_03EE&PID_6901\5&19D02293&0&1 : Mitsumi USB Floppy
USB\VID_03EE&PID_6901\5&3AB24582&0&2 : Mitsumi USB Floppy
USB\VID_0403&PID_6001\FTEHLXJX : USB Serial Converter
USB\VID_0403&PID_6001\FTEMAQMS : USB Serial Converter
USB\VID_046D&PID_0990\B4B16F1B : Logitech USB Camera (Pro 9000)
USB\VID_04A9&PID_10C8\1C73A5 : USB Printing Support
USB\VID_04B4&PID_6830\2000000000002537 : USB Mass Storage Device <--- USB HDD
USB\VID_077D&PID_0405\5&3062B09D&0&1 : USB Composite Device
USB\VID_0951&PID_1603\8990000000000002511362B3 : USB Mass Storage Device <--- 1GB

Using http://www.linux-usb.org/usb.ids , I can see that the first
one is my 8GB stick. The second one (6830) is my USB hard drive
enclosure. And the third Mass storage entry is my 1GB stick.

You can see he uses

DEVCON Remove "@%%A"

in the script, where a previous part of the command, works out the contents of
the token to be passed. You would need to modify the script slightly, so
it prints out the tokens, rather than executing them, so you can tell how
it is identifying the intended targets.

So perhaps removing those devices, would remove them from where they're
hiding in the equivalent of ENUM ? As far as I know, Windows 7 would still
have the equivalent to DEVCON, because it still has a device manager function.

When I tried devcon on my Win7 laptop, I needed to run cmd.exe (the command
prompt window) elevated, with administrator privileges. That prevented UAC from
hijacking my fun. And I also had better luck, with using one ">" for
redirection to a file, as in

devcon FindAll =USB >stupidwindows7.txt

The redirection allows you to save the command output, then open
it in Notepad.

You might be able to just add all the relevant commands to a single
script file, rather than going through the steps that renewusb uses.

devcon remove ...
devcon remove ...

where the dots are replaced by the necessary details, and remove
the entries one at a time.

Have fun,
Paul
 
Reply With Quote
 
Chief Scratchum
Guest
Posts: n/a
Thanked:
 
      04-08-2011
Paul <> wrote in news:inmn98$n46$:

> devcon FindAll =USB >stupidwindows7.txt


I like that... :-)


 
Reply With Quote
 
Peter Jason
Guest
Posts: n/a
Thanked:
 
      04-09-2011
On Fri, 08 Apr 2011 06:16:08 -0400, Paul <> wrote:

>Peter Jason wrote:
>> In XP there's a registry entry:
>> HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USBSTOR
>> that can be deleted to remove evidence of a thumb drive.
>>
>> This seems to be missing in Windows 7. Where is the equivalent?
>>
>> Also, is there some way to remove numerous instances of a name in the
>> registry? Such as USBSTOR?
>>
>> Peter
>>
>>

>
>This site, has a script that demonstrates what the Microsoft utility
>DEVCON can do. Download the RenewUSB.bat file (it downloads as RenewUSB.txt,
>to prevent accidents). You do not want to just run that script verbatim,
>but the contents of the script will demonstrate what tools are available.
>
>http://www.robvanderwoude.com/devcon.php
>
>In there, you can see that a command such as
>
> devcon FindAll =USB
>
>will list all the USB devices in Device Manager. I see two
>entries that correspond to the two USB flash sticks I own.
>I have an external USB enclosure with hard drive, and have
>used on occasion, two USB flash sticks (1GB, 8GB).
>
>USB\VID_0325&PID_AC02\AA04012700252303 : USB Mass Storage Device <--- 8GB
>USB\VID_03EE&PID_6901\5&19D02293&0&1 : Mitsumi USB Floppy
>USB\VID_03EE&PID_6901\5&3AB24582&0&2 : Mitsumi USB Floppy
>USB\VID_0403&PID_6001\FTEHLXJX : USB Serial Converter
>USB\VID_0403&PID_6001\FTEMAQMS : USB Serial Converter
>USB\VID_046D&PID_0990\B4B16F1B : Logitech USB Camera (Pro 9000)
>USB\VID_04A9&PID_10C8\1C73A5 : USB Printing Support
>USB\VID_04B4&PID_6830\2000000000002537 : USB Mass Storage Device <--- USB HDD
>USB\VID_077D&PID_0405\5&3062B09D&0&1 : USB Composite Device
>USB\VID_0951&PID_1603\8990000000000002511362B3 : USB Mass Storage Device <--- 1GB
>
>Using http://www.linux-usb.org/usb.ids , I can see that the first
>one is my 8GB stick. The second one (6830) is my USB hard drive
>enclosure. And the third Mass storage entry is my 1GB stick.
>
>You can see he uses
>
> DEVCON Remove "@%%A"
>
>in the script, where a previous part of the command, works out the contents of
>the token to be passed. You would need to modify the script slightly, so
>it prints out the tokens, rather than executing them, so you can tell how
>it is identifying the intended targets.
>
>So perhaps removing those devices, would remove them from where they're
>hiding in the equivalent of ENUM ? As far as I know, Windows 7 would still
>have the equivalent to DEVCON, because it still has a device manager function.
>
>When I tried devcon on my Win7 laptop, I needed to run cmd.exe (the command
>prompt window) elevated, with administrator privileges. That prevented UAC from
>hijacking my fun. And I also had better luck, with using one ">" for
>redirection to a file, as in
>
> devcon FindAll =USB >stupidwindows7.txt
>
>The redirection allows you to save the command output, then open
>it in Notepad.
>
>You might be able to just add all the relevant commands to a single
>script file, rather than going through the steps that renewusb uses.
>
> devcon remove ...
> devcon remove ...
>
>where the dots are replaced by the necessary details, and remove
>the entries one at a time.
>
>Have fun,
> Paul




Thanks, I'll get going on it.
Peter
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Install Windows 7 davehc Software 0 08-16-2010 02:50 PM
Windows 7 Annoyances Nibiru2012 General Discussion 6 03-17-2010 06:17 PM
Clean Install Windows 7 with Upgrade Media Nibiru2012 Installation, Setup and Updates 0 12-22-2009 07:03 PM
Clean Install Windows 7 with Upgrade Media Nibiru2012 Installation, Setup and Updates 2 12-04-2009 06:30 PM
Important Issues in This Release Candidate of Windows 7 Ian News 0 05-05-2009 03:25 PM


All times are GMT +1. The time now is 11:41 AM.
W7Forums is an independent website and is not affiliated with Microsoft Corporation.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33