Open in the explorer

Set Netlogon share compatibility

Définir la compatibilité du partage Netlogon

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_NetlogonShareCompatibilityMode

Explanation

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

If you enable this policy setting, the Netlogon 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.

If you disable or do not configure this policy setting, the Netlogon 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 Netlogon share will grant shared read access to files on the share when exclusive access is requested.

Note: The Netlogon share is a share created by the Net Logon service for use by client machines in the domain. The default behavior of the Netlogon share ensures that no application with only read permission to files on the Netlogon 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 Netlogon share with only read permission will be able to deny Group Policy clients from reading the files, and in general the availability of the Netlogon 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 Netlogon 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 de stratégie, le partage Netlogon 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 Netlogon 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 Netlogon accorde un accès en lecture partagé aux fichiers du partage lorsque l’accès exclusif est demandé.

Remarque : le partage Netlogon est un partage créé par le service Net Logon qui doit être utilisé par les ordinateurs clients du domaine. Le comportement par défaut du partage Netlogon permet de s’assurer qu’aucune application disposant uniquement d’une autorisation de lecture sur les fichiers du partage Netlogon 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 Netlogon 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 Netlogon 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
AllowExclusiveScriptsShareAccess
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_NetlogonShareCompatibilityMode
$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 'AllowExclusiveScriptsShareAccess' -Value 1 -Type DWord

Disable

# Disable: Netlogon/Netlogon_NetlogonShareCompatibilityMode
$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 'AllowExclusiveScriptsShareAccess' -Value 0 -Type DWord

Revert to "Not configured"

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

Availability