Prevent the wizard from running.
Empêcher l’exécution de l’assistant.
Explanation
By default, Add features to Windows 10 is available for all administrators.
If you enable this policy setting, the wizard will not run.
If you disable this policy setting or set it to Not Configured, the wizard will run.
Par défaut, Ajouter des fonctionnalités à Windows 10 est mis à disposition de tous les administrateurs.
Si vous activez ce paramètre de stratégie, l’Assistant ne s’exécute pas.
Si vous désactivez ce paramètre de stratégie ou que vous lui attribuez la valeur Non configuré, l’Assistant s’exécute.
Registry
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\WAUHKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\WAU- Value name
Disabled
| 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.
Computer (HKLM)
Enable
# Enable: WindowsAnytimeUpgrade/Disabled
$k = 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\WAU'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'Disabled' -Value 1 -Type DWordDisable
# Disable: WindowsAnytimeUpgrade/Disabled
$k = 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\WAU'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'Disabled' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": WindowsAnytimeUpgrade/Disabled
$k = 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\WAU'
Remove-ItemProperty -Path $k -Name 'Disabled' -ErrorAction SilentlyContinueUser (HKCU)
Enable
Disable
Revert to "Not configured"