5 Ways to Disable Windows Autorun on Portable Drives Windows Autorun and Autoplay features offer convenience by launching media or software automatically when you plug in a USB flash drive or external hard drive. However, this convenience doubles as a major security vulnerability. Malware frequently exploits these features to infect computers the moment a portable drive is connected. Disabling them is a highly effective way to secure your system.
Here are five different methods to disable Windows Autorun and Autoplay on portable drives, ranging from quick settings toggles to advanced system configurations. Method 1: Use the Windows Settings App
This is the most straightforward method for everyday users. It completely turns off the Autoplay prompt for all media and devices. Press Windows Key + I to open the Settings menu. Click on Bluetooth & devices in the left sidebar. Scroll down on the right pane and select AutoPlay.
Toggle the switch for Use AutoPlay for all media and devices to Off.
Alternatively, leave it on but change the dropdown menus for Removable drive and Memory card to Take no action. Method 2: Use the Control Panel
If you prefer the classic Windows interface, the Control Panel allows you to fine-tune how Windows handles specific types of media on portable drives. Press the Windows Key, type Control Panel, and press Enter. Click on Hardware and Sound, then select AutoPlay.
Uncheck the box at the top that reads Use AutoPlay for all media and devices.
Click Save at the bottom of the window to apply the changes. Method 3: Use the Local Group Policy Editor
For Windows Pro, Enterprise, or Education users, the Local Group Policy Editor offers a permanent, system-wide restriction that prevents Autorun from executing commands. Press Windows Key + R to open the Run dialog box. Type gpedit.msc and press Enter.
Navigate to the following path in the left sidebar:Computer Configuration > Administrative Templates > Windows Components > AutoPlay Policies
Double-click on the Turn off AutoPlay policy in the right pane. Select the Enabled radio button.
In the “Options” dropdown menu below, ensure All drives is selected. Click Apply, then OK, and restart your computer. Method 4: Modify the Windows Registry
Windows Home users do not have access to the Group Policy Editor, but they can achieve the exact same system-wide restriction by modifying the Registry. Press Windows Key + R, type regedit, and press Enter.
Navigate to the following key:HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
Look for a DWORD value named NoDriveTypeAutoRun. If it does not exist, right-click in the empty space, select New > DWORD (32-bit) Value, and name it NoDriveTypeAutoRun. Double-click NoDriveTypeAutoRun.
Change the Base to Hexadecimal, set the Value data to FF (this disables AutoPlay on all types of drives), and click OK. Close the Registry Editor and restart your PC. Method 5: Disable the Shell Hardware Detection Service
The Shell Hardware Detection service is the underlying Windows component responsible for triggering Autoplay notifications. Disabling this service stops Autorun completely. Note that this may also stop some applications from automatically launching when you dock your device or insert discs. Press Windows Key + R, type services.msc, and press Enter. Scroll down the list to find Shell Hardware Detection. Right-click the service and select Properties. Change the Startup type dropdown menu to Disabled.
Click the Stop button under “Service status” if the service is currently running. Click Apply, then OK. Summary Table of Methods Technical Difficulty Windows Settings Quick, everyday adjustments Control Panel Granular media management Group Policy Network administrators & power users Registry Editor Windows Home advanced users Windows Services Absolute, nuclear shutdown of the feature
By implementing any of these methods, you add a robust layer of defense to your operating system, ensuring that a compromised USB drive cannot execute malicious code without your explicit permission. To help tailor this guide further, let me know: Which Windows version (Home, Pro, etc.) are you targeting? Is this for personal use or managing a corporate network? Saved time \x3c!–TgQPHd|[91,“Saved time”,false,false]–> \x3c!–TgQPHd|[92,“Clear”,false,false]–> \x3c!–TgQPHd|[94,“Helpful”,false,false]–> Comprehensive \x3c!–TgQPHd|[93,“Comprehensive”,false,false]–> \x3c!–TgQPHd|[95,“Other”,true,true]–> \x3c!–TgQPHd|[2,“Incorrect”,false,false]–> Inappropriate \x3c!–TgQPHd|[9,“Inappropriate”,false,false]–> Not working \x3c!–TgQPHd|[70,“Not working”,true,false]–> \x3c!–TgQPHd|[11,“Unhelpful”,false,false]–> \x3c!–TgQPHd|[1,“Other”,true,true]–>
\x3c!–qkimaf ukL4Wb_7g/WyzG9e–>\x3c!–cqw1tb ukL4Wb_7g/WyzG9e–>
A copy of this chat, including the images and video, will be included with your feedback A copy of this chat will be included with your feedback
Your feedback will include a copy of this chat and the image from your search
Your feedback will include a copy of this chat, any links you shared, and the image from your search.
\x3c!–qkimaf ukL4Wb_7g/lC1IR–>\x3c!–cqw1tb ukL4Wb_7g/lC1IR–>
\x3c!–qkimaf ukL4Wb_7g/Y6wv1e–>\x3c!–cqw1tb ukL4Wb_7g/Y6wv1e–> Thanks for letting us know
Google may use account and system data to understand your feedback and improve our services, subject to our Privacy Policy and Terms of Service. For legal issues, make a legal removal request. \x3c!–TgQPHd|[]–>