Secure Windows: Disable Autorun for USB Flash Drives

You can help to make computers more secure! How? By disabling autorun on all of your own USB flash drives! Viruses will modify the autorun.inf file in order to execute malicious code on your PC.

Disable autorun in Windows 7

So, how do you disable autorun then and check if you are infected?

1. Step Open an elevated command prompt
2. Step Enter the driver letter of your USB flash drive, e.g. G:
3. Step Next, enter attrib -h -r -s autorun.inf

If you receive the message: File not found – autorun.inf your antivirus might have already deleted/quarantined your autorun.inf because it was infected.

Autorun.inf not found

If the system does find the autorun.inf, proceed with the next stepos.

This command will make the file visible again and we can then proceed and delete the autorun.inf

4. StepBefore you delete it run edit autorun.inf
5. Step Look for “open=file.exe
6. Step The file.exe will have a random name and is the actual virus file that the autorun.inf is launching every time you plug in your USB flash drive. That’s how viruses can easily spread.
7. To delete the virus enter del /f /a file.exe . Replace file.exe with the virus filename.
8. Step Also don’t forget to delete the autorun.inf. Enter del /f /a autorun.inf

TOP Security Software For 2017

1 Bullguard2 AVG3 Anti -Malware
Price annually/device$59.95
(1 year / 3 devices)
(1 year / 1 device)
(1 year / 1 device)
Bullguard_logo_small Avg_logo_2016_internet_security Malwarebytes Anti Malware 2016.Png
Visit Now Visit Now Visit Now
Read Review Read Review Read Review
Great For:Allround Use, ReportsAllround Use, FirewallRemoving
Published: Sunday, August 8th, 2010 Last Modified: August 8, 2010

Related Posts

Rate This Article
5 of 5 0 (100%) 1 vote