Enable Windows Restore
Activer la restauration Windows
Explanation
This policy setting allows administrators to configure and manage Windows settings restore for their organization.
If you enable this policy setting, Windows settings restore will be enabled.
If you disable or do not configure this policy setting, Windows settings restore will be disabled.
Ce paramètre de stratégie permet aux administrateurs de configurer et de gérer la restauration des paramètres Windows pour leur organisation.
Si vous activez ce paramètre de stratégie, la restauration des paramètres Windows est activée.
Si vous désactivez ou ne configurez pas ce paramètre de stratégie, la restauration des paramètres Windows est désactivée.
Registry
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\WindowsBackupAndRestore\NodeValues- Value name
EnableWindowsRestore
| 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: SettingSync/EnableWindowsRestore
$k = 'HKLM:\Software\Microsoft\Windows\CurrentVersion\WindowsBackupAndRestore\NodeValues'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'EnableWindowsRestore' -Value 1 -Type DWordDisable
# Disable: SettingSync/EnableWindowsRestore
$k = 'HKLM:\Software\Microsoft\Windows\CurrentVersion\WindowsBackupAndRestore\NodeValues'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'EnableWindowsRestore' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": SettingSync/EnableWindowsRestore
$k = 'HKLM:\Software\Microsoft\Windows\CurrentVersion\WindowsBackupAndRestore\NodeValues'
Remove-ItemProperty -Path $k -Name 'EnableWindowsRestore' -ErrorAction SilentlyContinue