Hello,
If the registry value does not exist, Windows 10 and Windows 11 default to 0x91 for NoDriveTypeAutoRun. That value disables AutoRun for unknown and network drive types, and Windows will use it implicitly when neither HKLM nor HKCU defines the setting.
Microsoft's docs describe the key and its bit flags, and reference 0x91 as the default when you need to recreate it.
Why some sources say
0x95: before the Windows 7 security hardening, admins often set0x95to also flip the Removable-drive bit. Since Windows 7, AutoRun from non-optical removable media is blocked regardless of this registry value, and that behavior continues in Windows 10 and 11.
If you want Windows to use its built-in defaults, simply leave NoDriveTypeAutoRun absent in both HKLM and HKCU. If you must set it explicitly, use 0x00000091.For the official description of the key and where it lives, see Microsoft Learn's AutoRun registry reference.