Open in the explorer

Do not allow non-Enhanced Storage removable devices

Ne pas autoriser les dispositifs de stockage non étendu amovibles

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › System › Enhanced Storage Access FR: Configuration ordinateur › Stratégies › Modèles d'administration › Système › Accès au stockage étendu
Supported on
At least Windows Server 2008 R2 or Windows 7 FR: Au minimum Windows Server 2008 R2 ou Windows 7
ADMX file
EnhancedStorage.admx
Internal name
EnhancedStorage/DisallowLegacyDiskDevices

Explanation

This policy setting configures whether or not non-Enhanced Storage removable devices are allowed on your computer.

If you enable this policy setting, non-Enhanced Storage removable devices are not allowed on your computer.

If you disable or do not configure this policy setting, non-Enhanced Storage removable devices are allowed on your computer.

French text from Windows 11 26H2

Ce paramètre de stratégie configure si les dispositifs amovibles de stockage non étendu sont autorisés sur votre ordinateur.

Si vous activez ce paramètre, les dispositifs amovibles de stockage non étendu ne sont pas autorisés sur votre ordinateur.

Si vous désactivez ce paramètre ou ne le configurez pas, les dispositifs amovibles de stockage non étendu sont autorisés sur votre ordinateur.

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\EnhancedStorageDevices
Value name
DisallowLegacyDiskDevices
StateValue written
EnabledREG_DWORD = 1
DisabledREG_DWORD = 0

PowerShell

PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.

Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.

Enable

# Enable: EnhancedStorage/DisallowLegacyDiskDevices
$k = 'HKLM:\Software\Policies\Microsoft\Windows\EnhancedStorageDevices'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'DisallowLegacyDiskDevices' -Value 1 -Type DWord

Disable

# Disable: EnhancedStorage/DisallowLegacyDiskDevices
$k = 'HKLM:\Software\Policies\Microsoft\Windows\EnhancedStorageDevices'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'DisallowLegacyDiskDevices' -Value 0 -Type DWord

Revert to "Not configured"

# Revert to "Not configured": EnhancedStorage/DisallowLegacyDiskDevices
$k = 'HKLM:\Software\Policies\Microsoft\Windows\EnhancedStorageDevices'
Remove-ItemProperty -Path $k -Name 'DisallowLegacyDiskDevices' -ErrorAction SilentlyContinue

Availability