Set App Installer Source Auto Update Interval In Minutes
Définir l’intervalle en minutes de mise à jour automatique de source du programme d’installation de l’application
Explanation
This policy controls the auto-update interval for package-based sources. The default source for Windows Package Manager is configured such that an index of the packages is cached on the local machine. The index is downloaded when a user invokes a command, and the interval has passed.
If you disable or do not configure this setting, the default interval or the value specified in the Windows Package Manager settings will be used.
If you enable this setting, the number of minutes specified will be used by the Windows Package Manager.
Cette stratégie contrôle l’intervalle de mise à jour automatique pour les sources basées sur les packages. La source par défaut de Gestionnaire de package Windows est configurée de sorte qu’un index des packages soit mis en cache sur l’ordinateur local. L’index est téléchargé lorsqu’un utilisateur appelle une commande et que l’intervalle est écoulé.
Si vous désactivez ou ne configurez pas ce paramètre, l’intervalle par défaut ou la valeur spécifié dans les paramètres de Gestionnaire de package Windows sont utilisés.
Si vous activez ce paramètre, le nombre de minutes spécifié est utilisé par le Gestionnaire de package Windows.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\AppInstaller- 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: DesktopAppInstaller/SourceAutoUpdateInterval
$k = 'HKLM:\Software\Policies\Microsoft\Windows\AppInstaller'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Source Auto Update Interval In Minutes
Set-ItemProperty -Path $k -Name 'SourceAutoUpdateInterval' -Value 5 -Type DWord # maximum 43200Disable
# Disable: DesktopAppInstaller/SourceAutoUpdateInterval
# No value is written in the "Disabled" state (nothing defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": DesktopAppInstaller/SourceAutoUpdateInterval
$k = 'HKLM:\Software\Policies\Microsoft\Windows\AppInstaller'
Remove-ItemProperty -Path $k -Name 'SourceAutoUpdateInterval' -ErrorAction SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| Source Auto Update Interval In MinutesIntervalle en minutes de mise à jour automatique de la sourceSourceAutoUpdateInterval | Numeric boxdecimal | SourceAutoUpdateInterval | REG_DWORD | Max: 43200 · Default (UI): 5 |