Configure device installation time-out
Configurer le délai d’attente d’installation de périphérique
Explanation
This policy setting allows you to configure the number of seconds Windows waits for a device installation task to complete.
If you enable this policy setting, Windows waits for the number of seconds you specify before terminating the installation.
If you disable or do not configure this policy setting, Windows waits 240 seconds for a device installation task to complete before terminating the installation.
Ce paramètre de stratégie permet de configurer le nombre de secondes pendant lesquelles Windows attend la fin d’une tâche d’installation d'appareil.
Si vous activez ce paramètre de stratégie, Windows attend pendant le nombre de secondes spécifié avant de mettre fin à l’installation.
Si vous désactivez ce paramètre de stratégie ou ne le configurez pas, Windows attend pendant 240 secondes la fin de la tâche d'installation avant d'y mettre fin.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\DeviceInstall\Settings- 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: DeviceInstallation/DeviceInstall_InstallTimeout
$k = 'HKLM:\Software\Policies\Microsoft\Windows\DeviceInstall\Settings'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Device Installation Timeout (in seconds)
Set-ItemProperty -Path $k -Name 'InstallTimeout' -Value 300 -Type DWord # between 240 and 4294968Disable
# Disable: DeviceInstallation/DeviceInstall_InstallTimeout
# No value is written in the "Disabled" state (nothing defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": DeviceInstallation/DeviceInstall_InstallTimeout
$k = 'HKLM:\Software\Policies\Microsoft\Windows\DeviceInstall\Settings'
Remove-ItemProperty -Path $k -Name 'InstallTimeout' -ErrorAction SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| Device Installation Timeout (in seconds)Délai d’attente d’installation de périphérique (en secondes)DeviceInstall_InstallTimeout_Time | Numeric boxdecimal | InstallTimeout | REG_DWORD | Min: 240 · Max: 4294968 · Default (UI): 300 |