Open in the explorer

Set SYSVOL share compatibility

Définir la compatibilité du partage SYSVOL

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › System › Net Logon FR: Configuration ordinateur › Stratégies › Modèles d'administration › Système › Net Logon
Supported on
At least Windows Server 2003 FR: Au minimum Windows Server 2003
ADMX file
Netlogon.admx
Internal name
Netlogon/Netlogon_SysvolShareCompatibilityMode

Explanation

This policy setting controls whether or not the SYSVOL share created by the Net Logon service on a domain controller (DC) should support compatibility in file sharing semantics with earlier applications.

When this setting is enabled, the SYSVOL share will honor file sharing semantics that grant requests for exclusive read access to files on the share even when the caller has only read permission.

When this setting is disabled or not configured, the SYSVOL share will grant shared read access to files on the share when exclusive access is requested and the caller has only read permission.

By default, the SYSVOL share will grant shared read access to files on the share when exclusive access is requested.

Note: The SYSVOL share is a share created by the Net Logon service for use by Group Policy clients in the domain. The default behavior of the SYSVOL share ensures that no application with only read permission to files on the sysvol share can lock the files by requesting exclusive read access, which might prevent Group Policy settings from being updated on clients in the domain. When this setting is enabled, an application that relies on the ability to lock files on the SYSVOL share with only read permission will be able to deny Group Policy clients from reading the files, and in general the availability of the SYSVOL share on the domain will be decreased.

If you enable this policy setting, domain administrators should ensure that the only applications using the exclusive read capability in the domain are those approved by the administrator.

French text from Windows 11 26H2

Ce paramètre de stratégie indique si le partage SYSVOL créé par le service Net Logon sur un contrôleur de domaine doit prendre en charge la compatibilité de la sémantique de partage de fichiers avec les applications antérieures.

Si vous activez ce paramètre, le partage SYSVOL respecte la sémantique de partage de fichiers qui accorde les demandes d’accès en lecture exclusif aux fichiers du partage, même lorsque l’appelant ne dispose que d’une autorisation de lecture.

Si vous désactivez ce paramètre de stratégie ou si vous ne le configurez pas, le partage SYSVOL accorde un accès en lecture partagé aux fichiers du partage lorsque l’accès exclusif est demandé et que l’appelant ne dispose que d’une autorisation de lecture.

Par défaut, le partage SYSVOL accorde un accès en lecture partagé aux fichiers du partage lorsque l’accès exclusif est demandé.

Remarque : le partage SYSVOL est un partage créé par le service Net Logon qui doit être utilisé par les clients de la stratégie de groupe du domaine. Le comportement par défaut du partage SYSVOL permet de s’assurer qu’aucune application disposant uniquement d’une autorisation de lecture sur les fichiers du partage SYSVOL ne peut verrouiller les fichiers en demandant un accès en lecture exclusif, ce qui peut empêcher la mise à jour des paramètres de stratégie de groupe sur les clients du domaine. Lorsque vous activez ce paramètre, une application qui s’appuie sur sa capacité à verrouiller les fichiers du partage SYSVOL avec une autorisation de lecture uniquement peut empêcher des clients de la stratégie de groupe de lire les fichiers ; en règle générale, ce comportement réduit la disponibilité du partage SYSVOL sur le domaine.

Si vous activez ce paramètre de stratégie, les administrateurs de domaine doivent s’assurer que les seules applications qui utilisent la fonction de lecture exclusive dans le domaine sont celles approuvées par l’administrateur.

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Netlogon\Parameters
Value name
AllowExclusiveSysvolShareAccess
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: Netlogon/Netlogon_SysvolShareCompatibilityMode
$k = 'HKLM:\Software\Policies\Microsoft\Netlogon\Parameters'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'AllowExclusiveSysvolShareAccess' -Value 1 -Type DWord

Disable

# Disable: Netlogon/Netlogon_SysvolShareCompatibilityMode
$k = 'HKLM:\Software\Policies\Microsoft\Netlogon\Parameters'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'AllowExclusiveSysvolShareAccess' -Value 0 -Type DWord

Revert to "Not configured"

# Revert to "Not configured": Netlogon/Netlogon_SysvolShareCompatibilityMode
$k = 'HKLM:\Software\Policies\Microsoft\Netlogon\Parameters'
Remove-ItemProperty -Path $k -Name 'AllowExclusiveSysvolShareAccess' -ErrorAction SilentlyContinue

Availability