Thursday, January 12, 2012

How to disable Autorun in Windows 7

Hello friends, in my previous post i have explained how to fix not able to install any antivirus or unable to update any antivirus problem. Today i will teach you how to disable the Autorun on windows 7 in less than 2 minutes. This will make your system or PC more secure against the Trojan and virus attacks. Your system will not get infected until you by yourself executes its exe(executable) file by yourself. As i always had a bad habit of explaining the things with underlying concept, i will follow the same today too. So friends lets have a brief overview how it works.

disable autorun, turn off autoplay
How to Disable autorun in windows 7
What is Autorun? Is it similar to autoplay? Are they really same, can we use them interchangeably, if yes why and if not why not? I know most of users doesn't know the difference between autoplay and autorun. But after reading this article you will be able to distinguish between both terms. First lets start with similarities, both autoplay and autorun are terms coined by Microsoft and specially for windows platform. Both comes in picture whenever a user connects or mounts a new drive on his/her laptop or PC. Autorun and autoplay are actually configuration files which contains the list of commands that decides what action your Operating system should take when you connects or mounts a new media or drive on your system.
AutoPlay is a feature introduced in Windows XP which examines removable media and devices and, based on content such as pictures, music or video files, launches an appropriate application to play or display the content. But the autorun is little bit different.
AutoRun is actually a feature of Windows Explorer service(actually of the shell32 dll), which enables media and devices to launch programs by use of command listed in a file called autorun.inf, stored in the root directory of the medium. Suppose you want to execute the contents of a folder in this case root directly is your folder. Similarly you can extend the thought.
Have you guys ever tried to understand or noticed what happens when we double clicks on any executable file or set up file(which is also a executable). Hmm.... Let me guess, most of times never. Aha... OK.. i explain the background as you will not going to find this valuable information anywhere on internet except HackingLoops or some content copiers (:P who copies my articles). Whenever a user double clicks on any executable file, a set of instructions are executed in background, these instructions are written in autorun.inf files which tells our operating system that which program has to be executed when user double clicks the exe file. 
Ahhahh.... i think you still have little confusion... k little more background. There is one more underlying concept which is actually known as Batch programs, batch program are nothing just these are the programs which are running at back end without users awareness. And which file schedules them, which files decides which file has to be executed when first is completed... Guess... hmm.... Its autorun itself. So friends now i think you are able to understand what actually is autorun. 

The autorun.inf is much similar to .ini files, containing information and the commands as key = "value" pairs. These keys specifies the below mentioned things:
  • The name and the location of a program to call when the medium is inserted (the "AutoRun task").
  • The name of a file that contains an icon that represents the medium in Explorer (instead of the standard drive icon).
  • Commands for the menu that appears when the user right-clicks the drive icon.
  • The default command that runs when the user double-clicks the drive icon.
  • Settings that alter AutoPlay detection routines or search parameters.
  • Settings that indicate the presence of drivers.
Autorun makes the viruses or Trojans to execute on your system without your interaction. Hackers write viruses and add their virus execution codes in autorun.inf files which automatically starts executing as soon as you attaches your device to your Laptop or PC. Device can be anything like CD, DVD, Blue Ray, Pen Drive , USB hard disk etc. Autorun is actually a open door to attack your system which makes the hackers work quite easier in spreading their viruses and Trojans.

So friends, how to disable autorun or autoplay in windows 7. This is also quite easier if you know things how they actually work and now you can also estimates the dangers that how much dangerous a simple autorun can be. As hacker i am using this from long time, just to automate my programs (:P batch programs).
I have made a video tutorial for you guys which will explain you all possible ways to turn off or disable autoplay in windows 7. So friends watch the video and give your feedback. If you like it, just a simple thanks as comment can do the magic. So be magician and i will continuously keep teaching you the magical tricks. Enjoy and learn:

I hope you all enjoyed it... :P At least the music..:D


  1. :) thank you so much sir. Wonderful info as always..

  2. as a side note...gpedit.msc is not offered to windows 7 premium home users. But it can be disabled by going to control panel/hardware and sound/autoplay then choose take no action for every drop down window.

  3. @Donald

    As i always mention little knowledge is always dangerous thing. In second comment you are saying that in windows 7 home premium home users you don't have gpedit.msc . Its only because you haven't installed all the security updates on your system and if installed then its not properly installed. Also using control panel you can turn off autoplay not the autorun. I have already explained above autorun and autoplay both are different stuff.

    Please install below two updates on Windows 7 to enable advance features and fixing autorun feature automatically:
    To disable autorun:

    To enable autorun:

    Hope it works for you...

  4. To disable Autorun yourself on operating systems that do not include Gpedit.msc, follow these steps:

    1. Click Start, click Run, type regedit in the Open box, and then click OK.
    2. Locate and then click the following entry in the registry:
    3. Right-click NoDriveTypeAutoRun, and then click Modify.
    4. In the Value data box, type 0xFF to disable all types of drives. Or, to selectively disable specific drives, use a different value as described in the "How to selectively disable specific Autorun features" section.
    5. Click OK, and then exit Registry Editor.
    6. Restart the computer.
    7. That's all..

  5. The video is no longer working.Please upload again.Thnx a lot.

  6. @Lokesh - is there any way to disable AutoRUNS in Windows Home Premium without going into the registry? I am afraid of doing anything in the registry in case I make a mistake.

    Please help.

    Thanks in advance,



Please do not spam.

Designed by Hackingloops.