Ouvrir dans l'explorateur

Exclude specific kinds of folders from being uploaded

Cette stratégie n'a pas de traduction française dans les modèles de l'éditeur ; le texte original est en anglais.

Type
Ordinateur
Chemin GPO
Configuration ordinateur › Stratégies › Modèles d'administration › OneDrive EN : Computer Configuration › Policies › Administrative Templates › OneDrive
Pris en charge sur
At least Windows Server 2016, Windows 10 Version 1709
Fichier ADMX
OneDrive.admx
Nom interne
OneDrive/EnableODIgnoreFolderListFromGPO

Explication

This setting lets you enter keywords to prevent the OneDrive sync app (OneDrive.exe) from uploading certain folders to OneDrive or SharePoint. You can only enter complete names, such as "PowerShell".

If you enable this setting, the sync app doesn't upload new folders that match the keywords you specified. New files in existing folders that match the keywords won't be uploaded.

No errors appear for the skipped folders, and the folders remain in the local OneDrive folder.

The OneDrive sync app must be restarted after this setting is enabled for the setting to take effect.

If you disable or do not configure this setting, the sync app uploads all supported folders.

Registre

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\OneDrive
Nom de la valeur
non défini dans l'ADMX

Valeurs d'activation / désactivation : non défini dans l'ADMX (voir les options ci-dessous).

PowerShell

Commandes PowerShell qui écrivent dans le registre ce que la stratégie écrirait. Les valeurs entre chevrons (<…>) sont à remplacer.

Écrire directement dans le registre contourne la stratégie de groupe : si une GPO gère cette valeur, elle sera réécrite au prochain gpupdate ; sinon la valeur reste en place (effet « tatouage »). Préférez une GPO ou, en local, LGPO.exe. Exécutez PowerShell en administrateur pour HKLM. Certaines stratégies demandent un redémarrage ou gpupdate /force.

Activer

# Activer : OneDrive/EnableODIgnoreFolderListFromGPO
$k = 'HKLM:\Software\Policies\Microsoft\OneDrive\EnableODIgnoreFolderListFromGPO'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Keywords
$values = @('<valeur1>', '<valeur2>')  # Remplacez les valeurs par les vôtres
foreach ($v in $values) { Set-ItemProperty -Path $k -Name $v -Value $v -Type String }

Désactiver

# Désactiver : OneDrive/EnableODIgnoreFolderListFromGPO
# Aucune valeur n'est écrite à l'état « Désactivé » (rien de défini dans l'ADMX)

Revenir à « Non configuré »

# Revenir à « Non configuré » : OneDrive/EnableODIgnoreFolderListFromGPO
$k = 'HKLM:\Software\Policies\Microsoft\OneDrive\EnableODIgnoreFolderListFromGPO'
Remove-Item -Path $k -Recurse -Force -ErrorAction SilentlyContinue

Options (1)

LibelléContrôleValeur de registreType REGContraintes / détails
Keywords:EnableODIgnoreFolderListFromGPOListBoxListe (tableau)listSoftware\Policies\Microsoft\OneDrive\EnableODIgnoreFolderListFromGPOValeurs numérotées (1, 2, 3…) · additifREG_SZ (valeurs sous la clé)

Application

Microsoft OneDrive (Microsoft) — modèles d'octobre 2026

Modèles d'octobre 2026 issus de pl4nty/web-admx-tool.