Deploy App Control for Business
Déployer le contrôle d’application pour les entreprises
Explanation
Deploy App Control for Business
This policy setting lets you deploy a Code Integrity Policy to a machine to control what is allowed to run on that machine.
If you deploy a Code Integrity Policy, Windows will restrict what can run in both kernel mode and on the Windows Desktop based on the policy. To enable this policy the machine must be rebooted.
The file path must be either a UNC path (for example, \\ServerName\ShareName\SIPolicy.p7b), or a locally valid path (for example, C:\FolderName\SIPolicy.p7b). The local machine account (LOCAL SYSTEM) must have access permission to the policy file.
If using a signed and protected policy then disabling this policy setting doesn't remove the feature from the computer. Instead, you must either:
1) first update the policy to a non-protected policy and then disable the setting, or
2) disable the setting and then remove the policy from each computer, with a physically present user.
Déployer le contrôle d’application pour Les entreprises
Ce paramètre de stratégie vous permet de déployer une stratégie d’intégrité du code sur un ordinateur pour contrôler ce qui est autorisé à s’exécuter sur cet ordinateur.
Si vous déployez une stratégie d’intégrité du code, Windows restreint ce qui peut s’exécuter à la fois en mode noyau et sur le Bureau Windows en fonction de la stratégie. Pour activer cette stratégie, l’ordinateur doit être redémarré.
Le chemin de fichier doit être un chemin UNC (par exemple, \\ServerName\ShareName\SIPolicy.p7b) ou un chemin d’accès valide localement (par exemple, C :\FolderName\SIPolicy.p7b). Le compte d’ordinateur local (SYSTÈME LOCAL) doit avoir l’autorisation d’accès au fichier de stratégie.
Si vous utilisez une stratégie signée et protégée, la désactivation de ce paramètre de stratégie ne supprime pas la fonctionnalité de l’ordinateur. À la place, vous devez :
1) mettez d’abord à jour la stratégie vers une stratégie non protégée, puis désactivez le paramètre, ou
2) désactivez le paramètre, puis supprimez la stratégie de chaque ordinateur, avec un utilisateur physiquement présent.
Use cases
Deploys an App Control for Business (formerly WDAC) policy by GPO from a local path or a UNC share readable by computer accounts: only programs allowed by the policy run. It is a strong defence against untrusted executables.
The GPO only supports the single-policy format (legacy schema): for Windows 10 1903 and later or Windows 11, Microsoft points to other methods (Intune, Configuration Manager, script). A restart is required, and AppLocker remains preferable if you need per-user or per-group rules.
Microsoft sources: Deploy App Control for Business policies using Group Policy · App Control and AppLocker overview
Registry
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\DeviceGuard- Value name
DeployConfigCIPolicy
| 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: DeviceGuard/ConfigCIPolicy
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeviceGuard'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'DeployConfigCIPolicy' -Value 1 -Type DWord
# Code Integrity Policy file path
Set-ItemProperty -Path $k -Name 'ConfigCIPolicyFilePath' -Value '<value>' -Type StringDisable
# Disable: DeviceGuard/ConfigCIPolicy
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeviceGuard'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'DeployConfigCIPolicy' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": DeviceGuard/ConfigCIPolicy
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeviceGuard'
Remove-ItemProperty -Path $k -Name 'DeployConfigCIPolicy' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'ConfigCIPolicyFilePath' -ErrorAction SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| Code Integrity Policy file path:Chemin d'accès aux fichiers de stratégie d'intégrité du code :ConfigCIPolicyFilePathText | Text boxtext | ConfigCIPolicyFilePath | REG_SZ | Required · Max length: 255 |