"Bill in Co." wrote in message
news:uR$(E-Mail Removed)...
> I've pretty much disabled this thing, but on occasion I slip up and
> forget, such as when I plug in a new USB device. As soon as that
> happens, a screen pops up and it starts copying files somewhere (who
> knows where), so I immediately hit the Cancel key to stop it. And
> then it stops, naturally. Who knows if it actually copied any files,
> and if so, where they were copied to.
>
> And then I go through and customize it to TAKE NO ACTION (which I
> think should be the *default action* for any new devices being
> plugged in).
>
> Anyway, my question is, where was it trying to copy these files to?
> And could it have if I hit the cancel button in time (like two
> seconds later)? Hopefully it didn't copy anything, or even possibly
> overwrite any files I had on the HD with the same filename.
Microsoft's KB article 136214
It shows the meaning of the bits in the NoDriveTypeAutoRun registry
key. The default values are 0x91 (1001001) and 0x95 (10010101) See:
Microsoft's KB article 895108
which says:
Microsoft Windows Server 2003 0x95
Microsoft Windows XP 0x91
Microsoft Windows 2000 0x95
In Windows XP, the bit to disable removable volumes is not set (to be
disabled). You might want to change the value to 0x95. This sets the
removable volume bit to 1 (which disables those devices from
auto-running). I would think this would include other removable drive
types, like USB drives. You could also use the TweakUI powertoy to
check which drives have autoplay enabled for them (under My
Computer -> AutoPlay -> Types, disable for removable drives).
However, the per-user registry key:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2
holds cached information about every removable device, like a memory
stick, that Windows has seen before, and that key overrides the
NoDriveTypeAutoRun setting. So if you insert a removable volume that
Windows already knows about, the cached value gets used instead of the
NoDriveTypeAutoRun setting. The class IDs or drive letters under the
MountPoints2 key will have an autorun or autoplay subkey.
MountPoints2 is a dynamic system registry key that does not permit
users to write to it, even admins, as it is only accessed by the
system account to update the cached information. While you cannot
edit the subkeys and their values, you can delete this registry key to
get it recompiled as you use Windows thereafter. As with anything for
the registry, save a backup .reg file of the folder or key that you
intend to modify or delete. Under that registry folder is the
subfolder of:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2\CPC\Volume
Go read
http://help.wugnet.com/windows/Micro...ict540563.html
for some info on how that key is used. However, by deleting the
parent MountPoints2 folder, you get rid of the unique IDs for each
removable device that has been installed before and whether they use
AutoRun/AutoPlay. Note that there are multiple MountPoints2 keys in
the registry (some being duplicates of each because there are really
only 2 real hives in the registry and the other pseudo-hives are
collations of those two real hives).
As to where the files got copied, you will have to look at the
autorun.inf file to see what program got called. If it was a batch
(script) file, you could go read the script. If it is a program, you
won't know unless you monitor the file copying while it occurs, like
using FileMon from SysInternals (which Microsoft bought).
Read
http://blogs.technet.com/steriley/ar...n-autorun.aspx.
See the linked article titled "Autorun: good for you?". You might
just want to disable auto-play on all drives.