Turn on economical application of administratively assigned Offline Files
Activer l’application économique des fichiers hors connexion attribués administrativement
Explanation
This policy setting allows you to turn on economical application of administratively assigned Offline Files.
If you enable or do not configure this policy setting, only new files and folders in administratively assigned folders are synchronized at logon. Files and folders that are already available offline are skipped and are synchronized later.
If you disable this policy setting, all administratively assigned folders are synchronized at logon.
Ce paramètre de stratégie vous permet d’activer l’application économique des fichiers hors connexion attribués administrativement.
Si vous activez ou ne configurez pas ce paramètre, seuls les nouveaux fichiers et dossiers des dossiers attribués administrativement seront synchronisés lors de l’ouverture de session. Les fichiers et dossiers déjà disponibles hors connexion seront ignorés et synchronisés ultérieurement.
Si vous désactivez ce paramètre, tous les dossiers attribués administrativement seront synchronisés lors de l’ouverture de session.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\NetCache- Value name
EconomicalAdminPinning
| 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: OfflineFiles/Pol_QuickAdimPin
$k = 'HKLM:\Software\Policies\Microsoft\Windows\NetCache'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'EconomicalAdminPinning' -Value 1 -Type DWordDisable
# Disable: OfflineFiles/Pol_QuickAdimPin
$k = 'HKLM:\Software\Policies\Microsoft\Windows\NetCache'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'EconomicalAdminPinning' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": OfflineFiles/Pol_QuickAdimPin
$k = 'HKLM:\Software\Policies\Microsoft\Windows\NetCache'
Remove-ItemProperty -Path $k -Name 'EconomicalAdminPinning' -ErrorAction SilentlyContinue