Enable svchost.exe mitigation options
Supported on: At least Windows Server 2016, Windows 10
When the GPO stops applying: The value can stay behind (tattoo): this policy writes outside the Policies branches. Set it to the value you want left, let it apply, then remove the GPO. How cleanup works
| Registry key | HKLM\System\CurrentControlSet\Control\SCMConfig |
|---|---|
| Value name | EnableSvchostMitigationPolicy |
| Enabled writes | 1 (REG_DWORD) |
| Disabled writes | 0 (REG_DWORD) |
What it does (vendor 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.
Group Policy path: Computer Configuration > Administrative Templates > System > Service Control Manager Settings > Security Settings > Enable svchost.exe mitigation options
PowerShell equivalent (generated from the template)
New-Item -Path 'HKLM:\System\CurrentControlSet\Control\SCMConfig' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\SCMConfig' -Name 'EnableSvchostMitigationPolicy' -Value 1 -PropertyType DWord -ForceGroup Policy or Intune is the supported way to set policies. Writing the same values directly works like a local policy and is removed by nothing: delete the values to return to "Not configured".