Hardened UNC Paths
Chemins d'accès UNC renforcés
Explanation
This policy setting configures secure access to UNC paths.
If you enable this policy, Windows only allows access to the specified UNC paths after fulfilling additional security requirements.
Ce paramètre de stratégie permet de configurer un accès sécurisé aux chemins UNC.
Si vous activez cette stratégie, Windows n'autorisera l'accès aux chemins UNC spécifiés qu'après avoir rempli les exigences de sécurité supplémentaires.
Use cases
Imposes additional security requirements to access specific UNC paths: Windows reaches them only after those requirements are met. It is the configuration that Microsoft requires on top of update MS15-011 (CVE-2015-0008, remote code execution through Group Policy when a domain-joined machine connects to an attacker-controlled network): the patch alone is not enough.
The paths classically targeted are the SYSVOL and NETLOGON shares of domain controllers, from which clients read their GPOs and scripts; each entry in the list associates a path with its requirements. The bulletin points to KB 3000483 for the values in detail: re-read it before defining the list.
Microsoft source: Microsoft Security Bulletin MS15-011 - Critical
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\NetworkProvider\HardenedPaths- 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: NetworkProvider/Pol_HardenedPaths
$k = 'HKLM:\Software\Policies\Microsoft\Windows\NetworkProvider\HardenedPaths'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Hardened UNC Paths
$items = @{
'<name1>' = '<value1>'
'<name2>' = '<value2>'
} # Replace the values with your own
$items.GetEnumerator() | ForEach-Object { Set-ItemProperty -Path $k -Name $_.Key -Value $_.Value -Type String }Disable
# Disable: NetworkProvider/Pol_HardenedPaths
# No value is written in the "Disabled" state (nothing defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": NetworkProvider/Pol_HardenedPaths
$k = 'HKLM:\Software\Policies\Microsoft\Windows\NetworkProvider\HardenedPaths'
# names to adapt
# Remove-ItemProperty -Path $k -Name '<name1>' -ErrorAction SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| Hardened UNC Paths:Chemins d'accès UNC renforcés :Pol_HardenedPaths | List (table)list | Software\Policies\Microsoft\Windows\NetworkProvider\HardenedPathsName = value pairs · additive | REG_SZ (values under the key) |