Turn off the offer to update to the latest version of Windows
Désactiver la proposition d’effectuer une mise à jour vers la dernière version de Windows
Explanation
Enables or disables the Store offer to update to the latest version of Windows.
If you enable this setting, the Store application will not offer updates to the latest version of Windows.
If you disable or do not configure this setting the Store application will offer updates to the latest version of Windows.
Active ou désactive la proposition du Store d’effectuer une mise à niveau vers la dernière version de Windows.
Si vous activez ce paramètre, l’application Store ne propose pas de mises à jour vers la dernière version de Windows.
Si vous désactivez ce paramètre ou si vous ne le configurez pas, l’application Store propose des mises à jour vers la dernière version de Windows.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\WindowsStore- Value name
DisableOSUpgrade
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 1 |
| Disabled | REG_DWORD = 0 |
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: WindowsStore/DisableOSUpgrade_2
$k = 'HKLM:\Software\Policies\Microsoft\WindowsStore'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'DisableOSUpgrade' -Value 1 -Type DWordDisable
# Disable: WindowsStore/DisableOSUpgrade_2
$k = 'HKLM:\Software\Policies\Microsoft\WindowsStore'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'DisableOSUpgrade' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": WindowsStore/DisableOSUpgrade_2
$k = 'HKLM:\Software\Policies\Microsoft\WindowsStore'
Remove-ItemProperty -Path $k -Name 'DisableOSUpgrade' -ErrorAction SilentlyContinue