Non-default server disconnect actions
Actions non standard lors de la déconnexion du serveur
Explanation
Determines how computers respond when they are disconnected from particular offline file servers. This setting overrides the default response, a user-specified response, and the response specified in the "Action on server disconnect" setting.
To use this setting, click Show. In the Show Contents dialog box in the Value Name column box, type the server's computer name. Then, in the Value column box, type "0" if users can work offline when they are disconnected from this server, or type "1" if they cannot.
This setting appears in the Computer Configuration and User Configuration folders. If both settings are configured for a particular server, the setting in Computer Configuration takes precedence over the setting in User Configuration. Both Computer and User configuration take precedence over a user's setting. This setting does not prevent users from setting custom actions through the Offline Files tab. However, users are unable to change any custom actions established via this setting.
Tip: To configure this setting without establishing a setting, in Windows Explorer, on the Tools menu, click Folder Options, click the Offline Files tab, and then click Advanced. This setting corresponds to the settings in the "Exception list" section.
Détermine la façon dont les ordinateurs réagissent lorsqu’ils sont déconnectés de serveurs de fichiers hors connexion particuliers. Ce paramètre est prioritaire sur la réponse par défaut, la réponse spécifiée par un utilisateur, ainsi que la réponse spécifiée dans le paramètre « Action à la déconnexion du serveur ».
Pour utiliser ce paramètre, cliquez sur Afficher. Dans la colonne Nom de la valeur de la boîte de dialogue Afficher le contenu, tapez le nom d’ordinateur du serveur. Dans la colonne Nom de la valeur, tapez « 0 » si les utilisateurs peuvent travailler hors connexion quand ils sont déconnectés de ce serveur, ou tapez « 1 » dans le cas contraire.
Ce paramètre apparaît dans les dossiers Configuration ordinateur et Configuration utilisateur. Si les deux paramètres sont configurés pour un serveur particulier, le paramètre du dossier Configuration ordinateur est prioritaire sur le paramètre du dossier Configuration utilisateur. Les paramètres de Configuration ordinateur et de Configuration utilisateur sont prioritaires sur le paramètre d’un utilisateur. Ce paramètre n’empêche pas les utilisateurs de définir des actions personnalisées dans l’onglet Fichiers hors connexion. Toutefois, ils ne peuvent pas modifier les actions personnalisées définies par le biais de ce paramètre.
Conseil : pour configurer ce paramètre sans recourir à un paramètre, dans l’Explorateur Windows, menu Outils, cliquez sur Options des dossiers, sur l’onglet Fichiers hors connexion, puis sur Avancé. Ce paramètre correspond aux paramètres de la section « Liste des exceptions ».
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\NetCache- Value name
- not defined in the ADMX
Enable / disable values: not defined in the ADMX (see the options below).
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_CustomGoOfflineActions_2
$k = 'HKLM:\Software\Policies\Microsoft\Windows\NetCache\CustomGoOfflineActions'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Customize actions
# Non-additive list: existing values of the key are cleared first
if (Test-Path -Path $k) { (Get-Item -Path $k).Property | ForEach-Object { Remove-ItemProperty -Path $k -Name ([WildcardPattern]::Escape($_)) -ErrorAction SilentlyContinue } }
$items = @{
'<name1>' = '<value1>'
'<name2>' = '<value2>'
} # Replace the values with your own
$items.GetEnumerator() | ForEach-Object { Set-ItemProperty -Path $k -Name $_.Key -Value $_.Value -Type String }Disable
# Disable: OfflineFiles/Pol_CustomGoOfflineActions_2
# No value is written in the "Disabled" state (nothing defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": OfflineFiles/Pol_CustomGoOfflineActions_2
$k = 'HKLM:\Software\Policies\Microsoft\Windows\NetCache\CustomGoOfflineActions'
Remove-Item -Path $k -Recurse -Force -ErrorAction SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| Customize actions:Personnalisation des actions :Lbl_CustomGoOfflineActionsList | List (table)list | Software\Policies\Microsoft\Windows\NetCache\CustomGoOfflineActionsName = value pairs | REG_SZ (values under the key) |