Hardened UNC Paths: registry value Pol_HardenedPathsComputerHKLM\Software\Policies\Microsoft\Windows\NetworkProvider\HardenedPaths

Policy ID
Pol_HardenedPaths
Scope
Computer Configuration
Supported on
At least Windows Vista
Source
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (version 1.0)
Category
Network › Network Provider

Registry

(list values)

REG_SZComputer
Enabled value
Depends on the option value
Element
Hardened UNC Paths:
Value type
REG_SZ
Add to existing value
true
Explicit value name
true
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\NetworkProvider\HardenedPaths]
"<enter name>"="<enter value>"
CMD
reg add "HKLM\Software\Policies\Microsoft\Windows\NetworkProvider\HardenedPaths" /v "<enter name>" /t REG_SZ /d "<enter value>" /f
PowerShell
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\NetworkProvider\HardenedPaths' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\NetworkProvider\HardenedPaths' -Name '<enter name>' -PropertyType String -Value '<enter value>' -Force | Out-Null