Open in the explorer

Selectively allow the evaluation of a symbolic link

Autoriser l’évaluation d’un lien symbolique

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › System › Filesystem FR: Configuration ordinateur › Stratégies › Modèles d'administration › Système › Système de fichiers
Supported on
At least Windows Vista FR: Au minimum Windows Vista
ADMX file
FileSys.admx
Internal name
FileSys/SymlinkEvaluation

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.

French text from Windows 11 26H2

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
StateValue written
EnabledREG_DWORD = 1
DisabledREG_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 DWord

Disable

# 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 DWord

Revert 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 SilentlyContinue

Options (4)

LabelControlRegistry valueREG typeConstraints / details
Local Link to Local TargetLien local à une cible localeSymLinkClassL2LCheck boxbooleanSymlinkLocalToLocalEvaluationREG_DWORD
Checked: REG_DWORD = 1
Unchecked: REG_DWORD = 0
Local Link to a Remote TargetLien local à une cible distanteSymLinkClassL2RCheck boxbooleanSymlinkLocalToRemoteEvaluationREG_DWORD
Checked: REG_DWORD = 1
Unchecked: REG_DWORD = 0
Remote Link to Remote TargetLien distant à une cible distanteSymLinkClassR2RCheck boxbooleanSymlinkRemoteToRemoteEvaluationREG_DWORD
Checked: REG_DWORD = 1
Unchecked: REG_DWORD = 0
Remote Link to Local TargetLien distant à une cible localeSymLinkClassR2LCheck boxbooleanSymlinkRemoteToLocalEvaluationREG_DWORD
Checked: REG_DWORD = 1
Unchecked: REG_DWORD = 0

Availability