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
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.
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
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 1 |
| Disabled | REG_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 DWordDisable
# 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 DWordRevert 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