Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have an external USB hard drive with two partitions on it. Every time my computer boots up Windows 7, I get two autorun popup windows. This is annoying; I'd like Windows to just mount the partitions silently.

I could disable autorun for a specific drive type, but the drive classifications are not very fine grained, and I'd still like to get autorun for USB keys.

Is there a way I can disable autorun specifically for the two partitions on my USB hard drive, and nothing else?

share|improve this question
2  
Granularity was removed from Vista and Windows 7, I have never found a way to do it, so I turn off auto play. –  Moab Sep 13 '10 at 23:27
    
I don't think it's possible. –  soandos Aug 5 '11 at 2:17
    
@Moab How do you do this? –  coelhudo Jul 4 '12 at 22:49
    
@coelhudo Go to Microsoft's Autorun support page and either follow the instructions, or click on one of the "Fix it for me" buttons halfway down the page. –  JamesGecko Jul 5 '12 at 20:21
    
Nice, I had a similar problem and that was part of the problem, thanks!. –  coelhudo Jul 5 '12 at 20:44

3 Answers 3

up vote 6 down vote accepted

It's possible but it takes some work. I know where to start, but I don't know how to implement it for ya.

http://msdn.microsoft.com/en-us/library/cc144210(v=VS.85).aspx

These are the registry keys you would have to modify. Unfortunately, you'll need to hunt down all the classIDs of all the components what are listed as handlers for CD/DVDs. A scorched earth method would be just to unlist them as event handlers. I wouldn't recommend that though, as that could break programs. . .

edit:

Nevermind the above. I figured it out.

http://support.microsoft.com/kb/967715

Look for the registry setting for this group policy. Then use the chart in the article to get the setting you want. For example, I wanted to block the following drives: Unknown, Network, and CD. Using my handy dandy Windows Calculator, I get the value of b1(Hexadecimal) or 177. Punch that bad boy it.

share|improve this answer
1  
Unfortunately, the classes of device which that registry key disables are overly broad. For example, it do not distinguish between my 2GB USB thumbdrive and my 1TB USB external hard drive with several partitions. This was close, though! –  JamesGecko Jan 4 '12 at 0:32

So, there's apparently no hope for me, the hapless Windows 7 user. But if you're using Windows 2000, XP or 2003 (and only if you're using Windows 2000, XP or 2003), you're in luck!

This MSDN document contains instructions on how to disable auto-play on individual drive letters.

Basically, you start by taking the drive letters you want to disable. For me it was E, F, and G.

ZYXWVUTSRQPONMLKJIHGFEDCBA
00000000000000000000000000

This is a binary number. Change the digits under the drive letters you want to disable auto play on to 1. Like this:

ZYXWVUTSRQPONMLKJIHGFEDCBA
00000000000000000001110000

Ignore all the leading zeroes. Now I have

1110000

Convert it to hex with the Windows calculator or whatever.

70

Now open the start menu, type regedit and go here:

HKEY_CURRENT_USER
   Software
      Microsoft
         Windows
            CurrentVersion
               Policies
                  Explorer

Go to the menu and select Edit > New > DWORD (32-bit) value.

Name it NoDriveAutoRun. Now, type in the number you just figured out. Close regedit. Magic! Rebooting may be required for the change to take effect.

share|improve this answer
1  
Keep in mind that this will disable AutoPlay for certain drive letters. So, if your USB drive comes up a drive D:, and you block AutoPlay for D:, and then you plug in a different USB drive which is assigned D:, the AutoPlay of that will be blocked. Then, if you leave that in and plug in your original drive, it will get a different drive letter, and AutoPlay will not be blocked on it. So, the blocking doesn't follow the device. And, of course, it doesn't follow it to other machines, either. –  Jemenake Feb 23 at 21:06

Go to Control Panel\All Control Panel Items\AutoPlay in windows 7, down the bottom, chose take no action on the drop down in the external devices section

share|improve this answer
    
This disables autorun for every external device. If you read the question or the comments on the accepted answer, you'll note that I wanted to disable autorun for a specific, individual device. –  JamesGecko Jun 13 at 17:36

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.