Set Total Recovery Wait Time
Explanation
This policy setting specifies the maximum total time, in minutes, that the Quick Machine Recovery engine will spend across all recovery attempts before abandoning recovery and allowing the system to boot normally (or enter the standard recovery environment).
If you enable this policy setting, enter the desired total wait time in minutes in the options box.
Valid range: 1 to 4320 minutes (1 minute to 72 hours).
If you disable or do not configure this policy setting, the total wait time is determined by local settings, if set, or by the built-in default (180 minutes).
Registry
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\AutoRemediation- Value name
- not defined in the ADMX
Enable / disable values: not defined in the ADMX (see the options below).
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: QuickMachineRecovery/TotalWaitTime
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\AutoRemediation'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Total wait time (minutes)
Set-ItemProperty -Path $k -Name 'TotalWaitTime' -Value 180 -Type DWord # between 1 and 4320Disable
# Disable: QuickMachineRecovery/TotalWaitTime
# No value is written in the "Disabled" state (nothing defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": QuickMachineRecovery/TotalWaitTime
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\AutoRemediation'
Remove-ItemProperty -Path $k -Name 'TotalWaitTime' -ErrorAction SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| Total wait time (minutes):TotalWaitTimeValue | Numeric boxdecimal | TotalWaitTime | REG_DWORD | Min: 1 · Max: 4320 · Default (UI): 180 |