Konfiguruj funkcję Redirection Guard: wartość rejestru RedirectionGuardPolicyKomputerHKLM\Software\Policies\Microsoft\Windows NT\Printers
- Identyfikator zasady
- ConfigureRedirectionGuardPolicy
- Zakres
- Konfiguracja komputera
- Obsługiwane w systemach
- System Windows Server 2008 R2 lub nowszy albo system Windows 7
- Źródło
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (wersja 1.0)
- Kategoria
- Drukarki
Rejestr
RedirectionGuardPolicy
REG_DWORDKomputerHKLM\Software\Policies\Microsoft\Windows NT\Printers Bieżący klucz
- Wartość włączona
- Zależy od wartości opcji
- Element
- Opcje funkcji Redirection Guard
| Pozycja | Zapisana wartość |
|---|---|
| Wyłączono funkcję Redirection Guard | 0 |
| Włączono funkcje Redirection Guard | 1 |
| Tylko inspekcja funkcji Redirection Guard | 2 |
Zastosuj przez .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\Printers] ; Opcje (użyj tylko jednej) ; Wyłączono funkcję Redirection Guard "RedirectionGuardPolicy"=dword:00000000 ; Włączono funkcje Redirection Guard "RedirectionGuardPolicy"=dword:00000001 ; Tylko inspekcja funkcji Redirection Guard "RedirectionGuardPolicy"=dword:00000002
CMD
:: Opcje (użyj tylko jednej) :: Wyłączono funkcję Redirection Guard reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "RedirectionGuardPolicy" /t REG_DWORD /d 0 /f :: Włączono funkcje Redirection Guard reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "RedirectionGuardPolicy" /t REG_DWORD /d 1 /f :: Tylko inspekcja funkcji Redirection Guard reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers" /v "RedirectionGuardPolicy" /t REG_DWORD /d 2 /f
PowerShell
# Wspólne: utwórz klucz New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Force | Out-Null # Opcje (użyj tylko jednej) # Wyłączono funkcję Redirection Guard New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'RedirectionGuardPolicy' -PropertyType DWord -Value 0 -Force | Out-Null # Włączono funkcje Redirection Guard New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'RedirectionGuardPolicy' -PropertyType DWord -Value 1 -Force | Out-Null # Tylko inspekcja funkcji Redirection Guard New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers' -Name 'RedirectionGuardPolicy' -PropertyType DWord -Value 2 -Force | Out-Null