Wednesday, 4 April 2018

windows 7 - Disable AutoRun for specific external drive


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?



Answer



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.


No comments:

Post a Comment

Where does Skype save my contact's avatars in Linux?

I'm using Skype on Linux. Where can I find images cached by skype of my contact's avatars? Answer I wanted to get those Skype avat...