Open in the explorer

Update Power Policy for Cart Restarts

Mettre à jour la stratégie d’alimentation pour les redémarrages de paniers

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › Windows Components › Windows Update › Manage end user experience FR: Configuration ordinateur › Stratégies › Modèles d'administration › Composants Windows › Windows Update › Gérer l’expérience utilisateur final
Supported on
At least Windows Server 2016, Windows 10 FR: Au moins Windows Server 2016, Windows 10
ADMX file
WindowsUpdate.admx
Internal name
WindowsUpdate/SetEDURestart

Explanation

Enabling this policy for EDU devices that remain on Carts overnight will skip power checks to ensure update reboots will happen at the scheduled install time.

French text from Windows 11 26H2

L'activation de cette stratégie pour les appareils EDU qui restent sur Paniers pendant la nuit permet d'ignorer les vérifications d'alimentation pour s'assurer que les redémarrages de mise à jour ont lieu à l'heure prévue pour l'installation.

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WindowsUpdate
Value name
SetEDURestart
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: WindowsUpdate/SetEDURestart
$k = 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'SetEDURestart' -Value 1 -Type DWord

Disable

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

Revert to "Not configured"

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

Availability

Windows Server