en-US windows computer

Allow restore of system to default state

Verified with Windows 11 25H2 — updated on July 10, 2026

Windows 11 25H2

Supported on: Windows Server 2008 R2 and Windows 7

Path in the GPO console

Computer Configuration\Administrative Templates\System\Recovery

Description

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.

Registry

HKLM SOFTWARE\Policies\Microsoft\Windows\WinRE

Value name: DisableSetup

Enabled: DisableSetup = 0

Disabled: DisableSetup = 1

Export Builder

BETA

Configure the state, scope and options, then generate .reg, PowerShell, Intune and SCCM outputs — or add the setting to a multi-setting collection.

These exports write the registry — this is not a managed GPO.

.reg file

Windows Registry Editor Version 5.00

; Exported from gporais.com
; Policy: Allow restore of system to default state
; State: Enabled
; Supported on: Windows Server 2008 R2 and Windows 7

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WinRE]
"DisableSetup"=dword:00000000
More formats (PowerShell, Intune, SCCM)

PowerShell

# Exported from gporais.com
# Policy: Allow restore of system to default state
# State: Enabled
# Supported on: Windows Server 2008 R2 and Windows 7

$path = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\WinRE'
New-Item -Path $path -Force | Out-Null
Set-ItemProperty -Path $path -Name 'DisableSetup' -Value 0 -Type DWord

Building a multi-setting collection? Add this setting and generate combined .reg / PowerShell / GPO scripts.

Open the Builder

Embed this policy on your site

What to embed
Theme

Adds one script line: the theme follows your site’s appearance and the height fits the content. If your site blocks scripts, the embed follows the visitor’s system theme.

Preview