Difference between revisions of "Autorun"
Line 81: | Line 81: | ||
SIDE EFFECT - With this solution, Windows will no longer be notified when you insert a new CD. To make sure the correct icon and title for the current CD are displayed in My Computer and Explorer, press F5 to refresh the window. | SIDE EFFECT - With this solution, Windows will no longer be notified when you insert a new CD. To make sure the correct icon and title for the current CD are displayed in My Computer and Explorer, press F5 to refresh the window. | ||
+ | |||
+ | == Make Your Own User Created CDROM, DVD and USB Media Autorun == | ||
+ | |||
+ | Autorun.inf is the primary instruction file associated with the Autorun and is a simple text configuration file. In Windows something called the disk change notification polling detects the media change, causing autorun to trigger on the media. The operating system (Windows, Linux, etc) checks in the new disk's root directory for the existence of autorun.inf. If absent, the operating system performs a default action such as the auto insert notification action selection dialog in XP. | ||
+ | |||
+ | Simple autorun.inf example: | ||
+ | [autorun] | ||
+ | open=autorun.exe | ||
+ | icon=autorun.ico | ||
+ | |||
+ | See [[Creating an Autorun.inf]] for more information. | ||
== References and Sources == | == References and Sources == | ||
Line 86: | Line 97: | ||
* Computer Hope [http://www.computerhope.com/issues/ch000130.htm#1 Enabling or disabling Windows AutoPlay] | * Computer Hope [http://www.computerhope.com/issues/ch000130.htm#1 Enabling or disabling Windows AutoPlay] | ||
* Computer Helper [http://www.chelper.net/how_to_turn_off_autorun.htm How to Turn Off AutoRun, Auto insert, and AutoPlay] | * Computer Helper [http://www.chelper.net/how_to_turn_off_autorun.htm How to Turn Off AutoRun, Auto insert, and AutoPlay] | ||
+ | * Moon Valley Software [http://autorun.moonvalley.com/autoruninf.htm Autorun.inf, What is it?] | ||
| |
Revision as of 15:35, 27 May 2012
Disambiguation "autorun" in this context refers to a feature or property of Microsoft Windows and other operating systems, in general, that exhibit the behavior of automatically executing software on an inserted cdrom or media.
Some terminology relating to or sometimes used synonymously are Autoplay, Autorn, and Auto-insert notification.
Whenever inserting DVD's or CD's into a Windows computer you are usually prompted with a message asking what to do with the disc. This happens because of the AutoPlay/Auto Insert Notification functionality built into Windows. This can cause problems when burning discs using DVD/CD duplicators.
There are security implications involved with this behavior, such as the well known Sandisk U3 Flash Drive Virus and the more notorious Sony DRM Rootkit.
The autorun behavior can launch software without your consent and furthermore, actually install malware on your computer without your knowledge with full stealth proficiency.
Contents
Temporarily Disable Behavior
Hold down the SHIFT KEY when inserting a thumbdrive, cdrom disc, or other related media to prevent autorun.inf from launching. You can temporarily disable the AutoPlay feature in Windows 2000, XP, 2003 by holding down the left Shift key as the CD begins to run. In addition if you wish to browse the contents of the CD open My Computer, right-click the CD-ROM drive and choose explore.
Permanently Disable Behavior
soft disable
Disabling AutoPlay in Windows XP through Windows Explorer
- Open My Computer or Explorer
- Right-click the CD-ROM drive or other drive and click Properties.
- Click the AutoPlay tab. Within this section you will be able to specify all Windows AutoPlay features.
Disable AutoPlay on audio CDs
- Click Start, Programs, Windows Explorer
- Within Explorer click View and then Folder Options.
- Click the File Types tab and locate "CD Audio Track" category within the list of available file types.
- Highlight " CD Audio Track" and click Edit or Advanced.
- In the Actions category change the default from Play to Open or none.
The Windows Registry solution below is the most effective, in that it prevents any drive io activity after media is inserted, however, also has some technical ramifications.
Policy Edit
Open 'regedit' and locate the key:
HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
double-click the entry: "NoDriveTypeAutoRun" if present and change the value to
"95 00 00 00"
If NoDriveTypeAutoRun is not present, follow the below steps:
- click Edit from the drop down menu
- click new
- click binary value
- enter "NoDriveTypeAutoRun" as the name
- enter "95 00 00 00" as the value
OS Specific Methods Using Policy Editor
Windows XP Pro
- Remove media from the computer.
- Go to Start<Run, type 'gpedit.msc' (without the quotes) and click OK. This will open up the Group Policy Editor.
- Expand the following (in order): Computer Configuration<Administrative Templates<System.
- Click on the System folder, then on the right double-click on the 'Turn AutoPlay off' option.
- Select Enable and for 'Turn off AutoPlay on' set to All Drives. Click OK, close the Group Policy Editor and restart the computer.
Windows Vista
- Remove media from the computer.
- Go to Control Panel<Hardware and Sound<Play CD's or other media automatically.
- Uncheck the box at the top of the window next to "Use AutoPlay for all media and devices".
- Click the Save button and close Control Panel.
- Optional: Same method for disabling in Windows XP Pro can also be used.
Windows 7
- Remove media from the computer.
- Go to Control Panel<Hardware and Sound<AutoPlay.
- Uncheck the box at the top of the window next to "Use AutoPlay for all devices".
- Click the Save button and close Control Panel.
Hard Disable Using Registry Editor
The registry keys editor before dealt with Windows Policy a security feature of windows. Now will show the direct disable in the registry keys controlling the io specifically.
Windows 2000/XP
- Run the Registry Editor regedit and type that program name into the box after choosing "Run" from the Start menu.
- Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Cdrom.
- Double-click the Autorun value, and type 0 for its value. (If it's not there, create it by selecting Edit -> New -> DWORD Value, and typing "Autorun" for its name.)
- Log out and then log back in for this change to take effect.
SIDE EFFECT - With this solution, Windows will no longer be notified when you insert a new CD. To make sure the correct icon and title for the current CD are displayed in My Computer and Explorer, press F5 to refresh the window.
Make Your Own User Created CDROM, DVD and USB Media Autorun
Autorun.inf is the primary instruction file associated with the Autorun and is a simple text configuration file. In Windows something called the disk change notification polling detects the media change, causing autorun to trigger on the media. The operating system (Windows, Linux, etc) checks in the new disk's root directory for the existence of autorun.inf. If absent, the operating system performs a default action such as the auto insert notification action selection dialog in XP.
Simple autorun.inf example: [autorun]
open=autorun.exe icon=autorun.ico
See Creating an Autorun.inf for more information.
References and Sources
- Computer Hope Enabling or disabling Windows AutoPlay
- Computer Helper How to Turn Off AutoRun, Auto insert, and AutoPlay
- Moon Valley Software Autorun.inf, What is it?
Key Words: spyware , malware , trojan , crash , aries.sys , XCP technology