21 November 2009

Disable Autorun on all drives

By default, Windows runs the "autorun.inf" file in the root of a drive when it's mounted. Obviously no-one put any thought into the feature and it's now commonly used to spread viruses (particularly via USB flash drives). To disable Autorun for all drives, load our friend El Regedito:

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoDriveTypeAutorun
and
HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoDriveTypeAutorun

Set this to "ff" hexadecimal.

Sucks to be Microsoft.

UPDATE: Microsoft released an update to do this in February 2011.

No comments:

Post a Comment