Open in the explorer

Configure Redirection Guard

Configurer Redirection Guard

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › Printers FR: Configuration ordinateur › Stratégies › Modèles d'administration › Imprimantes
Supported on
At least Windows Server 2008 R2 or Windows 7 FR: Au minimum Windows Server 2008 R2 ou Windows 7
ADMX file
Printing.admx
Internal name
Printing/ConfigureRedirectionGuardPolicy

Explanation

Determines whether Redirection Guard is enabled for the print spooler.

You can enable this setting to configure the Redirection Guard policy being applied to spooler.

If you disable or do not configure this policy setting, Redirection Guard will default to being 'Enabled'.

If you enable this setting you may select the following options:

-- Enabled : Redirection Guard will prevent any file redirections from being followed

-- Disabed : Redirection Guard will not be enabled and file redirections may be used within the spooler process

-- Audit : Redirection Guard will log events as though it were enabled but will not actually prevent file redirections from being used within the spooler.

French text from Windows 11 26H2

Détermine si Redirection Guard est activé pour le spouleur d’impression.

Vous pouvez activer ce paramètre pour configurer la stratégie Redirection Guard appliquée au spouleur.

Si vous désactivez ou ne configurez pas ce paramètre de stratégie, Redirection Guard est par défaut « Activé ».

Si vous activez ce paramètre, vous pouvez sélectionner les options suivantes :

-- Activé : Redirection Guard empêche le suivi des redirections de fichiers

-- Désactivé : Redirection Guard ne sera pas activé et les redirections de fichiers peuvent être utilisées dans le processus spouleur

-- Audit : Redirection Guard enregistre les événements comme s’ils étaient activés, mais n’empêchera pas réellement l’utilisation des redirections de fichiers dans le spouleur.

Use cases

Turns on Redirection Guard for the print spooler: the process no longer follows file redirections (junctions, links) that an administrator did not create, which closes a family of privilege escalations where a user hijacks a write made by the spooler, which runs as SYSTEM. Options: disabled (0), enabled (1), audit only (2), which logs without blocking.

If the policy is disabled or not configured, the default behaviour is “enabled”. The Windows 11 22H2 security baseline sets this to Enabled; audit mode helps spot a printer driver or print software that relies on a redirection before you enforce it.

Microsoft source: Windows 11, version 22H2 Security Baseline

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\Printers
Value name
not defined in the ADMX

Enable / disable values: not defined in the ADMX (see the options below).

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: Printing/ConfigureRedirectionGuardPolicy
$k = 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Redirection Guard Options
# Possible options:
#   Redirection Guard Disabled = 0
#   Redirection Guard Enabled = 1
#   Redirection Guard Audit Only = 2
Set-ItemProperty -Path $k -Name 'RedirectionGuardPolicy' -Value 1 -Type DWord

Disable

# Disable: Printing/ConfigureRedirectionGuardPolicy
# No value is written in the "Disabled" state (nothing defined in the ADMX)

Revert to "Not configured"

# Revert to "Not configured": Printing/ConfigureRedirectionGuardPolicy
$k = 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers'
Remove-ItemProperty -Path $k -Name 'RedirectionGuardPolicy' -ErrorAction SilentlyContinue

Options (1)

LabelControlRegistry valueREG typeConstraints / details
Redirection Guard OptionsOptions de Redirection GuardRedirectionGuardPolicy_EnumDrop-down listenumRedirectionGuardPolicyREG_DWORD
Default choice (UI): #1
LabelValue
Redirection Guard DisabledREG_DWORD = 0
Redirection Guard EnabledREG_DWORD = 1
Redirection Guard Audit OnlyREG_DWORD = 2

Availability

Windows 10

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

Windows Server

✓ 2025— 2022— 2016