Open in the explorer

Configure RPC packet level privacy setting for incoming connections

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › MS Security Guide
Supported on
At least Windows Server 2016, Windows 10
ADMX file
SecGuide.admx
Internal name
SecGuide/Pol_SecGuide_RpcIncomingAuthenticationLevelPolicy

Explanation

This policy setting controls whether packet level privacy is enabled for RPC for incoming connections.

By default packet level privacy is enabled for RPC for incoming connections.

If you enable or do not configure this policy setting, packet level privacy is enabled for RPC for incoming connections.

Use cases

Enforces the "privacy" (encryption) authentication level on incoming RPC connections, used notably by the print spooler. Microsoft cites it as a partial mitigation for CVE-2021-34481 (PrintNightmare), to be left at 1 or undefined.

It does not replace restricting driver installation to administrators, which is the only measure equivalent to the full fix.

Microsoft source: KB5005652: Manage new Point and Print default driver installation behavior (CVE-2021-34481)

Registry

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print
Value name
RpcAuthnLevelPrivacyEnabled
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: SecGuide/Pol_SecGuide_RpcIncomingAuthenticationLevelPolicy
$k = 'HKLM:\SYSTEM\CurrentControlSet\Control\Print'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'RpcAuthnLevelPrivacyEnabled' -Value 1 -Type DWord

Disable

# Disable: SecGuide/Pol_SecGuide_RpcIncomingAuthenticationLevelPolicy
$k = 'HKLM:\SYSTEM\CurrentControlSet\Control\Print'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'RpcAuthnLevelPrivacyEnabled' -Value 0 -Type DWord

Revert to "Not configured"

# Revert to "Not configured": SecGuide/Pol_SecGuide_RpcIncomingAuthenticationLevelPolicy
$k = 'HKLM:\SYSTEM\CurrentControlSet\Control\Print'
Remove-ItemProperty -Path $k -Name 'RpcAuthnLevelPrivacyEnabled' -ErrorAction SilentlyContinue

Application

Microsoft Security Baseline (MSS, SecGuide) (Microsoft) — November 2026 templates

Official templates downloaded on November 12, 2026.