Configure App Install Control
Configurer le contrôle d'installation des applications
Explanation
App Install Control is a feature of Windows Defender SmartScreen that helps protect PCs by allowing users to install apps only from the Store. SmartScreen must be enabled for this feature to work properly.
If you enable this setting, you must choose from the following behaviors:
- Turn off app recommendations
- Show me app recommendations
- Warn me before installing apps from outside the Store
- Allow apps from Store only
If you disable or don't configure this setting, users will be able to install apps from anywhere, including files downloaded from the Internet.
Le contrôle d'installation des applications est une fonction de Windows Defender SmartScreen qui contribue à la protection de vos PC en autorisant les utilisateurs à installer des applications uniquement à partir du Store. SmartScreen doit être activé pour le bon fonctionnement de cette fonction.
Si vous activez ce paramètre, les utilisateurs doivent choisir parmi les comportements suivants :
- Désactiver les recommandations de l'application
- Afficher les recommandations de l'application
- M'avertir avant d'installer des applications provenant d'une autre source que le Store
- Autoriser les applications du Store uniquement
Si vous désactivez ou ne configurez pas ce paramètre, les utilisateurs pourront installer des applications à partir de n'importe quelle source, notamment des fichiers téléchargés depuis Internet.
Use cases
Restricts where users can install applications from: Microsoft Store only, a warning before installing from outside the Store, simple Store app recommendations, or no restriction (“Turn off app recommendations”). Disabled or not configured, the policy lets users install from anywhere, including downloaded files.
SmartScreen must be enabled for the feature to work. A trap documented by Microsoft: blocking only works while the device is online; to block offline too, you also need to enable SmartScreen in the shell and prevent override.
Microsoft source: Policy CSP - SmartScreen
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows Defender\SmartScreen- Value name
ConfigureAppInstallControlEnabled
| 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: SmartScreen/ConfigureAppInstallControl
$k = 'HKLM:\Software\Policies\Microsoft\Windows Defender\SmartScreen'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'ConfigureAppInstallControlEnabled' -Value 1 -Type DWord
# Pick one of the following settings
# Possible options:
# Turn off app recommendations = Anywhere
# Show me app recommendations = Recommendations
# Warn me before installing apps from outside the Store = PreferStore
# Allow apps from Store only = StoreOnly
Set-ItemProperty -Path $k -Name 'ConfigureAppInstallControl' -Value 'Anywhere' -Type StringDisable
# Disable: SmartScreen/ConfigureAppInstallControl
$k = 'HKLM:\Software\Policies\Microsoft\Windows Defender\SmartScreen'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'ConfigureAppInstallControlEnabled' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": SmartScreen/ConfigureAppInstallControl
$k = 'HKLM:\Software\Policies\Microsoft\Windows Defender\SmartScreen'
Remove-ItemProperty -Path $k -Name 'ConfigureAppInstallControlEnabled' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'ConfigureAppInstallControl' -ErrorAction SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Pick one of the following settings:Choisissez l’un des paramètres suivants :ConfigureAppInstallControl_Dropdown | Drop-down listenum | ConfigureAppInstallControl | REG_SZ | Required · Default choice (UI): #0
|