Open in the explorer

Allow restore of system to default state

Autoriser la restauration de l’état par défaut du système

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › System › Recovery FR: Configuration ordinateur › Stratégies › Modèles d'administration › Système › Récupération
Supported on
Windows Server 2008 R2 and Windows 7 FR: Windows Server 2008 R2 et Windows 7
ADMX file
ReAgent.admx
Internal name
ReAgent/ConfigureWinRESetup

Explanation

Requirements: Windows 7
Description: This policy setting controls whether users can access the options in Recovery (in Control Panel) to restore the computer to the original state or from a user-created system image.

If you enable or do not configure this policy setting, the items "Use a system image you created earlier to recover your computer" and "Reinstall Windows" (or "Return your computer to factory condition") appears on the "Advanced recovery methods" page of Recovery (in Control Panel) and will allow the user to restore the computer to the original state or from a user-created system image. This is the default setting.

If you disable this policy setting, the items "Use a system image you created earlier to recover your computer" and "Reinstall Windows" (or "Return your computer to factory condition") in Recovery (in Control Panel) will be unavailable. However, with this policy setting disabled, users can still restore the computer to the original state or from a user-created system image by restarting the computer and accessing the System Recovery Options menu, if it is available.

French text from Windows 11 26H2

Configuration requise : Windows 7
.Description : ce paramètre de stratégie détermine si les utilisateurs peuvent accéder aux options de Récupération (dans le Panneau de configuration) pour restaurer l’état initial de l’ordinateur ou une image système créée par l’utilisateur.

Si vous activez ce paramètre de stratégie ou si vous ne le configurez pas, les options « Utiliser une image système créée précédemment pour récupérer votre ordinateur » et « Réinstaller Windows » (ou « Restaurer les paramètres d’usine de votre ordinateur ») s’affichent sur la page « Méthodes de récupération avancées » de Récupération (dans le Panneau de configuration) et permettent à l’utilisateur de restaurer l’état initial de l’ordinateur ou une image système créée par l’utilisateur. Il s’agit de la configuration par défaut.

Si vous désactivez ce paramètre de stratégie, les options « Utiliser une image système créée précédemment pour récupérer votre ordinateur » et « Réinstaller Windows » (ou « Restaurer les paramètres d’usine de votre ordinateur ») sont indisponibles dans Récupération (dans le Panneau de configuration). Cependant, lorsque ce paramètre de stratégie est désactivé, les utilisateurs peuvent toujours restaurer l’état initial de l’ordinateur ou une image système créée par l’utilisateur en redémarrant l’ordinateur et en accédant au menu Options de récupération système, s’il est disponible.

Registry

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WinRE
Value name
DisableSetup
StateValue written
EnabledREG_DWORD = 0
DisabledREG_DWORD = 1

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: ReAgent/ConfigureWinRESetup
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\WinRE'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'DisableSetup' -Value 0 -Type DWord

Disable

# Disable: ReAgent/ConfigureWinRESetup
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\WinRE'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'DisableSetup' -Value 1 -Type DWord

Revert to "Not configured"

# Revert to "Not configured": ReAgent/ConfigureWinRESetup
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\WinRE'
Remove-ItemProperty -Path $k -Name 'DisableSetup' -ErrorAction SilentlyContinue

Availability