Open in the explorer

Set time (in seconds) to force reboot

Définir le délai (en secondes) avant de forcer le redémarrage

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › System › Removable Storage Access FR: Configuration ordinateur › Stratégies › Modèles d'administration › Système › Accès au stockage amovible
Supported on
At least Windows Vista FR: Au minimum Windows Vista
ADMX file
RemovableStorage.admx
Internal name
RemovableStorage/AccessRights_RebootTime_2

Explanation

This policy setting configures the amount of time (in seconds) that the operating system waits to reboot in order to enforce a change in access rights to removable storage devices.

If you enable this policy setting, you can set the number of seconds you want the system to wait until a reboot.

If you disable or do not configure this setting, the operating system does not force a reboot.

Note: If no reboot is forced, the access right does not take effect until the operating system is restarted.

French text from Windows 11 26H2

Ce paramètre de stratégie configure le délai (en secondes) d’attente du système avant de redémarrer pour appliquer un changement des droits d’accès aux dispositifs de stockage amovibles.

Si vous activez ce paramètre de stratégie, vous pouvez définir le nombre de secondes devant s’écouler avant le redémarrage du système.

Si vous désactivez ou ne configurez pas ce paramètre de stratégie, le système d’exploitation n’impose pas de redémarrage forcé.

Remarque : si le redémarrage n’est pas forcé, les droits d’accès ne sont pas appliqués tant que le système d’exploitation n’a pas redémarré.

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\RemovableStorageDevices
Value name
RebootTimeinSeconds_state
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: RemovableStorage/AccessRights_RebootTime_2
$k = 'HKLM:\Software\Policies\Microsoft\Windows\RemovableStorageDevices'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'RebootTimeinSeconds_state' -Value 1 -Type DWord
# Time (in seconds)
Set-ItemProperty -Path $k -Name 'RebootTimeinSeconds' -Value 1800 -Type DWord

Disable

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

Revert to "Not configured"

# Revert to "Not configured": RemovableStorage/AccessRights_RebootTime_2
$k = 'HKLM:\Software\Policies\Microsoft\Windows\RemovableStorageDevices'
Remove-ItemProperty -Path $k -Name 'RebootTimeinSeconds_state' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'RebootTimeinSeconds' -ErrorAction SilentlyContinue

Options (1)

LabelControlRegistry valueREG typeConstraints / details
Time (in seconds):Délai (en secondes) :AccessRights_RebootTime_secondsNumeric boxdecimalRebootTimeinSecondsREG_DWORD
Default (UI): 1800

Availability