Open in the explorer

Remove "Make Available Offline" command

Supprimer la commande « Rendre disponible hors connexion »

Type
User
GPO path
User Configuration › Policies › Administrative Templates › Network › Offline Files FR: Configuration utilisateur › Stratégies › Modèles d'administration › Réseau › Fichiers hors connexion
Supported on
At least Windows 2000 FR: Au minimum Windows 2000
ADMX file
OfflineFiles.admx
Internal name
OfflineFiles/Pol_NoMakeAvailableOffline_1

Explanation

This policy setting prevents users from making network files and folders available offline.

If you enable this policy setting, users cannot designate files to be saved on their computer for offline use. However, Windows will still cache local copies of files that reside on network shares designated for automatic caching.

If you disable or do not configure this policy setting, users can manually specify files and folders that they want to make available offline.

Notes:

This policy setting appears in the Computer Configuration and User Configuration folders. If both policy settings are configured, the policy setting in Computer Configuration takes precedence.

The "Make Available Offline" command is called "Always available offline" on computers running Windows Server 2012, Windows Server 2008 R2, Windows Server 2008, Windows 8, Windows 7, or Windows Vista.

French text from Windows 11 26H2

Ce paramètre de stratégie empêche les utilisateurs de rendre des fichiers et des dossiers du réseau disponibles hors connexion.

Si vous activez ce paramètre de stratégie, les utilisateurs ne peuvent pas désigner les fichiers qui doivent être enregistrés sur leur ordinateur pour une utilisation hors connexion. Toutefois, Windows poursuit la mise en cache des copies locales des fichiers qui se trouvent sur des partages réseau désignés pour la mise en cache automatique.

Si vous désactivez ou ne configurez pas ce paramètre de stratégie, les utilisateurs peuvent spécifier manuellement des fichiers et dossiers qu’ils souhaitent rendre disponibles hors connexion.

Remarques :

Ce paramètre de stratégie apparaît dans les dossiers Configuration ordinateur et Configuration utilisateur. Si les deux paramètres de stratégie sont configurés, le paramètre de stratégie de Configuration ordinateur est prioritaire.

La commande « Rendre disponible hors connexion » est appelée « Toujours disponible hors connexion » sur les ordinateurs Windows Server 2012, Windows Server 2008 R2, Windows Server 2008, Windows 8, Windows 7 ou Windows Vista.

Registry

HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\NetCache
Value name
NoMakeAvailableOffline
StateValue written
Enablednot defined in the ADMX
Disablednot defined in the ADMX

PowerShell

PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.

The ADMX does not specify the value written when enabled; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled). The commands below use 1/0 as an assumption.

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: OfflineFiles/Pol_NoMakeAvailableOffline_1
$k = 'HKCU:\Software\Policies\Microsoft\Windows\NetCache'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# The ADMX does not specify the value written; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled)
Set-ItemProperty -Path $k -Name 'NoMakeAvailableOffline' -Value 1 -Type DWord  # assumed value (not defined in the ADMX)

Disable

# Disable: OfflineFiles/Pol_NoMakeAvailableOffline_1
$k = 'HKCU:\Software\Policies\Microsoft\Windows\NetCache'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# The ADMX does not specify the value written; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled)
Set-ItemProperty -Path $k -Name 'NoMakeAvailableOffline' -Value 0 -Type DWord  # assumed value (not defined in the ADMX)

Revert to "Not configured"

# Revert to "Not configured": OfflineFiles/Pol_NoMakeAvailableOffline_1
$k = 'HKCU:\Software\Policies\Microsoft\Windows\NetCache'
Remove-ItemProperty -Path $k -Name 'NoMakeAvailableOffline' -ErrorAction SilentlyContinue

Availability