Selectively allow the evaluation of a symbolic link
Autoriser l’évaluation d’un lien symbolique
Explanation
Symbolic links can introduce vulnerabilities in certain applications. To mitigate this issue, you can selectively enable or disable the evaluation of these types of symbolic links:
Local Link to a Local Target
Local Link to a Remote Target
Remote Link to Remote Target
Remote Link to Local Target
For further information please refer to the Windows Help section
NOTE: If this policy is Disabled or Not Configured, local administrators may select the types of symbolic links to be evaluated.
Les liens symboliques peuvent introduire des vulnérabilités dans certaines applications. Pour pallier ce problème, vous pouvez activer ou désactiver l’évaluation des types de liens symboliques suivants :
Lien local vers une cible locale
Lien local vers une cible distante
Lien distant vers une cible distante
Lien distant vers une cible locale
Pour plus d’informations, consultez la section d’aide de Windows.
REMARQUE : si cette stratégie est désactivée ou n’est pas configurée, les administrateurs locaux peuvent sélectionner les types de liens symboliques à évaluer.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\Filesystems\NTFS- Value name
SymLinkState
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 1 |
| Disabled | REG_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: FileSys/SymlinkEvaluation
$k = 'HKLM:\Software\Policies\Microsoft\Windows\Filesystems\NTFS'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'SymLinkState' -Value 1 -Type DWord
# Local Link to Local Target
# unchecked: 0
Set-ItemProperty -Path $k -Name 'SymlinkLocalToLocalEvaluation' -Value 1 -Type DWord
# Local Link to a Remote Target
# unchecked: 0
Set-ItemProperty -Path $k -Name 'SymlinkLocalToRemoteEvaluation' -Value 1 -Type DWord
# Remote Link to Remote Target
# unchecked: 0
Set-ItemProperty -Path $k -Name 'SymlinkRemoteToRemoteEvaluation' -Value 1 -Type DWord
# Remote Link to Local Target
# unchecked: 0
Set-ItemProperty -Path $k -Name 'SymlinkRemoteToLocalEvaluation' -Value 1 -Type DWordDisable
# Disable: FileSys/SymlinkEvaluation
$k = 'HKLM:\Software\Policies\Microsoft\Windows\Filesystems\NTFS'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'SymLinkState' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": FileSys/SymlinkEvaluation
$k = 'HKLM:\Software\Policies\Microsoft\Windows\Filesystems\NTFS'
Remove-ItemProperty -Path $k -Name 'SymLinkState' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'SymlinkLocalToLocalEvaluation' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'SymlinkLocalToRemoteEvaluation' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'SymlinkRemoteToRemoteEvaluation' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'SymlinkRemoteToLocalEvaluation' -ErrorAction SilentlyContinueOptions (4)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| Local Link to Local TargetLien local à une cible localeSymLinkClassL2L | Check boxboolean | SymlinkLocalToLocalEvaluation | REG_DWORD | Checked: REG_DWORD = 1Unchecked: REG_DWORD = 0 |
| Local Link to a Remote TargetLien local à une cible distanteSymLinkClassL2R | Check boxboolean | SymlinkLocalToRemoteEvaluation | REG_DWORD | Checked: REG_DWORD = 1Unchecked: REG_DWORD = 0 |
| Remote Link to Remote TargetLien distant à une cible distanteSymLinkClassR2R | Check boxboolean | SymlinkRemoteToRemoteEvaluation | REG_DWORD | Checked: REG_DWORD = 1Unchecked: REG_DWORD = 0 |
| Remote Link to Local TargetLien distant à une cible localeSymLinkClassR2L | Check boxboolean | SymlinkRemoteToLocalEvaluation | REG_DWORD | Checked: REG_DWORD = 1Unchecked: REG_DWORD = 0 |