Skip to main content

Turning off Autorun feature in Windows 7

According to Wikipedia, Autoplay is a feature introduced in Windows XP which automatically checks and examines removable media and devices based on content such as pictures, music or video files once inserted.

The main purpose  of autorun is to have a software response to hardware actions that you start or plug on a computer. These features are typically called from removable media or from network shares. During Autoplay, the autorun.inf file from the media that is usual hidden is parsed.

Side effect

In versions of Windows that are earlier than Windows Vista and 7, when the media contains an Autorun command is inserted, the system automatically executes the program without requiring user consent.

For security reasons,  you can disable the feature using your windows registry.

Open your windows registry (win + r and type “regedit”)

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer

If the Explorer folder doesn’t exists, you can create by using the Right-Click on Policies folder then New option and Key, then type the name “explorer”

Next create a value named “NoDriveTypeAutoRun”

nodrivetypeautorun

Double-Click to set the value according to the data below

NoDriveTypeAutorun

The registry value selectively disables specific Autorun features.

Value Meaning
0xFF hex or 255 decimal Disable Autorun on all kinds of drives
0x20 hex or 32 decimal Disable Autorun on CD-ROM drives
0x10 hex or 16 decimal Disable Autorun on network drives
0x8 hex or 8 decimal Disable Autorun on fixed drives
0x4 hex or 4 decimal Disable Autorun on removable drives
0x40 hex or 64 decimal Disable Autorun on RAM disks
0x1 / 0x80 hex (128 decimal) Disable Autorun on drives of unknown type

Useful tip from Microsoft: If you want to turn off Autorun for both removable drives (flash drives) and for network drives, you must add 0x4 and 0x10 (0x4 + 0x10) equals 0x14 (20 decimal).

NoDriveAutoRun registry value

You can set the values on specific drive connected to the system.

e.g. decimal 13 data value corresponds to 1101 in binary.

Reading from right to left, Drive letter A, C and D are the one to be affected.

Same bits configuration procedure for RegdevelopTM! what a small world…

Using Regdevelop to create your own AutoPlayOff software

If you already familiar with windows registry, using regdevelop to create application is very easy.

Drag the CheckBox control to the form and use the configurations below

checkbox

Caption

Turn Off Autorun in all kinds of drives

RegKeyPath1

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer

ValueName1

NoDriveTypeAutoRun

ValueData1

255

ValueType1

DWORD

DeleteWhenUnchecked

True

You’ll noticed that it is similar or the same as creating your own registry entries as shown above.

regdevelopautoplayoff

Click the Start icon to test the application and afterwards, press the Build Now option to start using the application.

That’s it!

Comments

Popular posts from this blog

Turn Off Aero using a Keyboard Shortcut

I received a warm reception after releasing the article on how to turn on and turn off Windows Aero using Desktop Window Manager commands, Almost all comments expressed their thanks, such as "Thanks, Now I can use my laptop battery longer than usual..." Here's an update...I put the shortcuts on the 10th icon of the Quick Launch toolbar and used the automatically assigned Keyboard Shortcuts... Now, if I want to play games and turn the Aero Off, I press Win +" 0 ". If you haven't yet read the previous article, here's a guide. 1. iUnlockThis! Create an Aero On Off and Flip3D Shortcut 2. Drag the icon to the Quick Launch Bar. 3. To use the Shortcut keys, Press Win + position of the icon Win+1...Win+9 and Win+0 Note: Don't forget, Shortcut keys are limited.

Download

NEW! WinBubble for Windows 11 was released! WinTinker Password Generator , easily generate strong and secure passwords…   NEW VERSION AVAILABLE! WinBubble , Customize and Tweak Window Vista/7 easily   CLICK HERE for Recognitions and tips... 64/32-Bit Version AVAILABLE WinGuggle , Retrieve Office and Windows Vista/7-XP  Serial Keys, Customizes OEM and User Information, and Lets you access the most important information about  your system.   WinBubbles-Lite , updatable and lightweight version of winbubble. RegDevelop is the Next Generation of creating Customization Programs like WinBubbles, TweakUI and other utilities. Regdevelop will start the idea of creating application (Customization and GUI to programs) that can be edited, shared and updated by any user.

How to Enable/Disable "On Resume, Display Logon Screen"

Ok! It is disabled and you want to fix this fast and easy. Method 1 , Simplest Way Unchecked and disabled: Download the new version WinBubble and open it. It will sense that there's something wrong with your "On resume, Display Logon Screen" and it will be restored automatically. That's it!!! Method 2 1. Press Win+R and type "Regedit.exe" 2. Go to the path below HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Control Panel\Desktop 3. DELETE "ScreenSaverIsSecure" ............................................................................. If you don't want to delete it and you like it being disabled for security reasons . Open WinBubble   > Miscellaneous   Tab > Click "Password protect the screensavers" . The result can be seen in the picture above. Also, If you want it to be disabled with the option uncheck : HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Contro...