Home/Windows Home registry
Disable AutoRun on Windows Home With the Registry
Windows Home lacks the Group Policy editor, so the registry is the route for switching autorun off for every account. The change is two values in one key. This page gives the exact file, a PowerShell alternative, the per-user variant and a one-click undo, so you can reverse everything.
On Windows Home, create or edit the key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer, set NoDriveTypeAutoRun to 255 and NoAutorun to 1, then sign out and back in. Export the key first so you can undo the change.
At a glance
| Applies to | Windows Home 11 and 10 |
|---|---|
| Needs | Administrator account |
| Difficulty | Moderate |
| Time needed | 5 minutes |
| Cost | Free |
| Last verified | November 2026 |
Back Up the Key Before Editing
A registry edit is only as safe as its backup. Export the Explorer policy key to a file you keep outside the Desktop, then proceed. If the key does not exist on your PC yet, nothing needs saving and the export command will simply report that it cannot find it.
reg export "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" "%USERPROFILE%\Documents\explorer-policies-backup.reg"Apply the Two Values With a Registry File
Save the lines below as a file ending in .reg, double-click it and approve the prompt. The first value turns AutoPlay off for every drive type, and the second stops autorun commands from running. Sign out afterwards so Explorer reads both.
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer]
"NoDriveTypeAutoRun"=dword:000000ff
"NoAutorun"=dword:00000001Choose 0xB5 instead of 0xFF only if you must keep AutoPlay active for some drive types, a choice Microsoft documents for the CD-ROM and removable media setting.
Do the Same Thing With PowerShell
PowerShell sets the same values in two lines and works well for scripts. Run it from an administrator window. The commands create the key if it is missing, write both values and print the result so you can see the change land immediately.
$k = 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer'
New-Item -Path $k -Force | Out-Null
New-ItemProperty -Path $k -Name NoDriveTypeAutoRun -Value 255 -PropertyType DWord -Force | Out-Null
New-ItemProperty -Path $k -Name NoAutorun -Value 1 -PropertyType DWord -Force | Out-Null
Get-ItemProperty $k | Select-Object NoDriveTypeAutoRun, NoAutorunCurrent-User Variant for a Single Account
The same value exists under HKEY_CURRENT_USER and affects only the signed-in account. Use it when you lack administrator rights, and remember that other accounts on the PC keep their own behaviour. Machine-wide is the better choice on shared computers.
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer]
"NoDriveTypeAutoRun"=dword:000000ffWhat the Two Values Do Not Cover
The two registry values change how Windows reacts to a drive, and nothing more. They do not scan files, they do not stop a drive from mounting, and they do not prevent a device that pretends to be a keyboard. Plan for those gaps with antivirus, a storage block or both.
Think of them as hygiene. They remove the pop-up and block autorun commands, which closes the oldest route. Drives that arrive with a fake shortcut or a spoofed keyboard need the habits and tools described in the shortcut recovery guide and the main guide.
Undo File That Restores the Defaults
The undo file removes the two values you added, which returns the key to how Windows ships it. A minus sign before a value name tells the registry importer to delete that value. Import it, sign out and the original behaviour is back.
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer]
"NoDriveTypeAutoRun"=-
"NoAutorun"=-Registry Edit Questions
Four questions cover the usual worries about the registry route: whether Home has policy, how safe the edit is, whether a restart is needed and how to undo the change. Short answers follow, each tied to the section above.
Does Windows Home have Group Policy?
No. The Local Group Policy Editor is included only with Pro, Enterprise and Education editions of Windows. Windows Home users reach the same settings by editing the registry values directly, which is what this page explains step by step, or by upgrading their edition to Pro.
Is it safe to edit the registry?
It is safe when you change only the named values and export a backup first. A wrong edit elsewhere can break features, so type carefully, avoid importing files you have not read, and keep the undo file where you can find it.
Do I need to restart after the change?
Signing out and back in is normally enough, because Explorer reads the value when it starts. A full restart also works if you prefer it. If nothing seems different afterwards, read the values back with PowerShell before assuming the change failed, since the prompt may simply be coming from another account.
How do I undo the registry change?
Import the undo file shown below, or delete the two values by hand in the registry editor. Either returns Windows to its default behaviour for that key. The backup you exported earlier works as well, and it restores everything that was stored under the Explorer policy key at the time.
Next Steps for Home Users
Each guide in this series owns one question and links to the others for the rest. Pick the next one that matches what you are trying to do, and return to the main guide whenever you need the full overview.