Windows 7 Forums


Windows 7: Autorun.inf Files - Completely Block


Autorun.inf Files - Completely Block

How to Completely Block and Disable Autorun.inf Files in Windows 7, Vista, and XP
Published 06 May 2011
Published by

Applies to:
7,Vista

Featured Tutorial

Search - Find More with Filters and Operators
Search - Find More with Filters and Operators

How to Use Windows Search Filters and Operators to get better Search Results in Windows 7

Microsoft Account Display Name - Change
Microsoft Account Display Name - Change

How to Change your Microsoft Account Display Name

Online Scanners - Scan Suspicious Files on your PC
Online Scanners - Scan Suspicious Files on your PC

How to Scan Suspicious Files using Online Scanners

Portable OS - Carry your OS on an External Drive
Portable OS - Carry your OS on an External Drive

How to Create a Portable OS on an External Drive

Clean Reinstall - Factory OEM Windows 7
Clean Reinstall - Factory OEM Windows 7

How to Clean Reinstall a Factory OEM Windows 7

Troubleshooting Windows 7 Failure to Boot
Troubleshooting Windows 7 Failure to Boot


How to Completely Block and Disable Autorun.inf Files in Windows 7, Vista, and XP

information   Information
When a CD/DVD disc is inserted or a USB drive is connected to your system, Windows looks in the root directory of the new disc or drive for a file named autorun.inf. If found, Windows executes the instructions (keys) in that file.

For more about: Autorun vs Autoplay – What’s the Difference?

In Windows 7, Vista, and XP, two important changes were made to help improve security:



NOTE: For more on this, see: AutoRun changes in Windows 7 - Security Research & Defense - Site Home - TechNet Blogs
  1. AutoPlay will no longer support the AutoRun functionality for non-optical removable media. In other words, AutoPlay will still work for CD/DVDs but it will no longer work for USB drives. For example, if an infected USB drive is inserted on a machine then the AutoRun task will not be displayed. This will block the increasing social engineer threat highlighted in the SIR. The dialogs below highlight the difference that users will see after this change. Before the change, the malware is leveraging AutoRun (box in red) to confuse the user. After the change, AutoRun will no longer work, so the AutoPlay options are safe.
  2. A dialog change was done to clarify that the program being executed is running from external media.
By default in Windows 7, Vista, and XP now, the only [Autorun] keys available for USB/removable drives are below. The rest of the keys are ignored.
  • label - This key is responsible for displaying a custom name (label) for a CD/DVD or USB drive in Computer when a CD/DVD is inserted or a USB drive is connected.
  • icon - This key is responsible for displaying a custom icon for a CD/DVD or USB drive in Computer when a CD/DVD is inserted or a USB drive is connected.
This tutorial will allow you to completely block and disable all keys in autorun.inf files from being able to execute from any location and on any drive. This will affect all users on your Windows 7, Vista, or XP computer.


You must be logged in as an administrator to be able to apply this tutorial.

Note   Note
If autorun.inf files are set to be blocked below, then the installation startup process of software from any autorunning installation CD/DVD will no longer be automatic. It will be necessary to view the CD/DVD's autorun.inf file, and then execute the appropriate EXE install file manually.


EXAMPLE: Autorun.inf Files Unblocked and Blocked
NOTE: This example is with the icon key.
Autorun.inf Files - Completely Block-default.jpgAutorun.inf Files - Completely Block-blocked.jpg


Here's How:
1. To Completely Block and Disable Autorun.inf Files
A) Click on the Download button below to download the file below.
Block_Autorun.inf_Files.reg
download
B) Go to step 3.
2. To Unblock Autorun.inf Files Back to Default
NOTE: This is the default setting to allow the icon and label keys to work again for autorun.inf files.
A) Click on the Download button below to download the file below.
Unblock_Autorun.inf_Files.reg
download
3. Save the .reg file to the desktop.

4. Right click on the downloaded .reg file, and click on Merge.

5. Click on Run, Yes (UAC-Windows 7) or Continue (UAC-Vista), Yes, and OK when prompted.

6. Restart the computer to fully apply.

7. When done, you can delete the downloaded .reg file if you like.
That's it,
Shawn



Need more help? Try searching our extensive help and support site.
Loading
06 May 2011   #1
it2009yashar

Windows 7 Ultimate x64 SP1
Tebriz
 
 

Thanks

My System SpecsSystem Spec

06 May 2011   #2
Brink

64-bit Windows 7 Ultimate SP1 & Windows 8 Enterprise
Texas
 
 

You're most welcome Yashar.
My System SpecsSystem Spec
06 May 2011   #3
StalkeR

Windows 7 Ultimate SP1 x64
Macedonia
 
 

Thank you Brink! Great tutorial!
My System SpecsSystem Spec
.


06 May 2011   #4
Brink

64-bit Windows 7 Ultimate SP1 & Windows 8 Enterprise
Texas
 
 

Thank you Boshko.
My System SpecsSystem Spec
06 May 2011   #5
Vertex

Windows 7 Ultimate 32 Bit, Windows Developer Preview, Linux Mint 9 Gnome 32 Bit
Philippines
 
 

Good tutorial as usual from you, Brink.

Some malware that infect USB flashdrives include an Autorun.inf file that makes the flashdrive's icon go wrong as well as help run or initialize the malware to do its thing. Will blocking Autorun.inf files prevent this from happening as well??
My System SpecsSystem Spec
06 May 2011   #6
Brink

64-bit Windows 7 Ultimate SP1 & Windows 8 Enterprise
Texas
 
 

Hello Vertex,

The tutorial will allow you to block the icon and label autorun items from running, but the other autorun items are already blocked by default.
My System SpecsSystem Spec
06 May 2011   #7
kamoteprotocol

windows 7 Ultimate x32
philippines
 
 

thanks for the reg file ...
My System SpecsSystem Spec
06 May 2011   #8
Brink

64-bit Windows 7 Ultimate SP1 & Windows 8 Enterprise
Texas
 
 

You're welcome Kamoteprotocol, and welcome to Seven Forums.
My System SpecsSystem Spec
07 May 2011   #9
Neutron16

Windows 8; Windows 7 x86 (Dec2008-Jan2013)
 
 

"It is important to note that this applies to any autorun.inf in any location and on any drive."

"This workaround have the drawback is that installation of software from an autorunning install CD or DVD is no longer automatic. It will be necessary to view the CD's autorun.inf file and then execute the appropriate install program manually."
My System SpecsSystem Spec
Comment

 Autorun.inf Files - Completely Block problems?



Tutorial Tools



Similar help and support threads for: Autorun.inf Files - Completely Block
Windows 7 Tutorial Category
Autorun.inf Help With Opening TXT Files General Discussion
Completely Hidden Files Bug General Discussion
Solved How to completely delete the deleted files Software
Make Autorun files in Windows 7 Hardware & Devices
How do I *completely* kill all files when re-installing Installation & Setup


All times are GMT -5. The time now is 11:06 PM.


Seven Forums Android App Seven Forums IOS App Follow us on Facebook

Windows 7 Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows 7" and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd
  

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