Open in the explorer

Allow hibernate (S4) when starting from a Windows To Go workspace

Autoriser la veille prolongée (S4) lors du démarrage à partir d’un espace de travail Windows sur clé USB

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › Windows Components › Portable Operating System FR: Configuration ordinateur › Stratégies › Modèles d'administration › Composants Windows › Système d’exploitation portable
Supported on
At least Windows Server 2012, Windows 8 or Windows RT FR: Au minimum Windows Server 2012, Windows 8 ou Windows RT
ADMX file
ExternalBoot.admx
Internal name
ExternalBoot/PortableOperatingSystem_Hibernate

Explanation

Specifies whether the PC can use the hibernation sleep state (S4) when started from a Windows To Go workspace.

If you enable this setting, Windows, when started from a Windows To Go workspace, can hibernate the PC.

If you disable or don't configure this setting, Windows, when started from a Windows To Go workspace, can't hibernate the PC.

French text from Windows 11 26H2

Spécifie si l’ordinateur peut utiliser l’état de veille prolongée (S4) lorsqu’il est démarré à partir d’un espace de travail Windows sur clé USB.

Si vous activez ce paramètre de stratégie, Windows, s’il est démarré à partir d’un espace de travail Windows sur clé USB, peut mettre l’ordinateur en veille prolongée.

Si vous désactivez ce paramètre de stratégie ou ne le configurez pas, Windows, s’il est démarré à partir d’un espace de travail Windows sur clé USB, ne peut pas mettre l’ordinateur en veille prolongée.

Registry

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

Disable

# Disable: ExternalBoot/PortableOperatingSystem_Hibernate
$k = 'HKLM:\System\CurrentControlSet\Policies\Microsoft\PortableOperatingSystem'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'Hibernate' -Value 0 -Type DWord

Revert to "Not configured"

# Revert to "Not configured": ExternalBoot/PortableOperatingSystem_Hibernate
$k = 'HKLM:\System\CurrentControlSet\Policies\Microsoft\PortableOperatingSystem'
Remove-ItemProperty -Path $k -Name 'Hibernate' -ErrorAction SilentlyContinue

Availability