Open in the explorer

Enable svchost.exe mitigation options

Activer les options d'atténuation de svchost.exe

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › System › Service Control Manager Settings › Security Settings FR: Configuration ordinateur › Stratégies › Modèles d'administration › Système › Paramètres du Gestionnaire de contrôle de service › Paramètres de sécurité
Supported on
At least Windows Server 2016, Windows 10 FR: Au moins Windows Server 2016, Windows 10
ADMX file
ServiceControlManager.admx
Internal name
ServiceControlManager/SvchostProcessMitigationEnable

Explanation

This policy setting enables process mitigation options on svchost.exe processes.

If you enable this policy setting, built-in system services hosted in svchost.exe processes will have stricter security policies enabled on them.

This includes a policy requiring all binaries loaded in these processes to be signed by microsoft, as well as a policy disallowing dynamically-generated code.

If you disable or do not configure this policy setting, these stricter security settings will not be applied.

French text from Windows 11 26H2

Ce paramètre de stratégie active les options d'atténuation de processus sur les processus svchost.exe.

Si vous activez ce paramètre de stratégie, les services système intégrés hébergés dans les processus svchost.exe auront des stratégies de sécurité plus strictes activées.

Cela inclut une stratégie faisant en sorte que toutes les ressources binaires chargées dans ces processus soient signées par Microsoft, ainsi qu'une stratégie qui interdit le code généré dynamiquement.

Si vous désactivez ce paramètre de stratégie ou si vous ne le configurez pas, les paramètres de sécurité les plus stricts ne sont pas appliqués.

Registry

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\SCMConfig
Value name
EnableSvchostMitigationPolicy
StateValue written
EnabledREG_DWORD = 1
DisabledREG_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: ServiceControlManager/SvchostProcessMitigationEnable
$k = 'HKLM:\System\CurrentControlSet\Control\SCMConfig'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'EnableSvchostMitigationPolicy' -Value 1 -Type DWord

Disable

# Disable: ServiceControlManager/SvchostProcessMitigationEnable
$k = 'HKLM:\System\CurrentControlSet\Control\SCMConfig'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'EnableSvchostMitigationPolicy' -Value 0 -Type DWord

Revert to "Not configured"

# Revert to "Not configured": ServiceControlManager/SvchostProcessMitigationEnable
$k = 'HKLM:\System\CurrentControlSet\Control\SCMConfig'
Remove-ItemProperty -Path $k -Name 'EnableSvchostMitigationPolicy' -ErrorAction SilentlyContinue

Availability

Windows 10

✓ 22H2✓ 21H2✓ 21H1✓ 20H2✓ 2004✓ 1909✓ 1903— 1809— 1803— 1709— 1703— 1607— 1511— 1507

Windows Server