Ouvrir dans l'explorateur

Silently move Windows known folders to OneDrive

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 2008 R2 or Windows 7
Fichier ADMX
OneDrive.admx
Nom interne
OneDrive/KFMOptInNoWizard

Explication

This setting lets you redirect known folders to OneDrive without any user interaction. In sync app builds below 18.171.0823.0001, this setting only redirects empty known folders to OneDrive (or known folders already redirected to a different OneDrive account). In later builds, it redirects known folders that contain content and moves the content to OneDrive. We recommend using this setting together with "Prompt users to move Windows known folders to OneDrive." If moving the known folders silently does not succeed, users will be prompted to correct the error and continue.

If you enable this setting and provide your tenant ID, you can choose whether to display a notification to users after their folders have been redirected.

You can move all folders at once or select the folders you want to move. After a folder is moved, this policy will not affect that folder again, even if you clear the check box for the folder.

If you disable or do not configure this setting, your users' known folders will not be silently redirected and/or moved to OneDrive.

Cas d'usage

Déplace silencieusement Bureau, Documents et Images vers OneDrive, sans interaction de l’utilisateur, avec une notification facultative ensuite. C’est la façon la plus directe de sauvegarder les dossiers des utilisateurs dans OneDrive ; une fois un dossier déplacé, la stratégie ne le retouche plus, même si la sélection change.

Microsoft recommande de l’associer au réglage « inviter les utilisateurs » pour qu’ils puissent corriger une erreur, et d’étaler le déploiement (limites de 1 000 appareils par jour et 4 000 par semaine pour les appareils existants). Elle ne fonctionne pas si Documents, Images ou Bureau sont déjà redirigés par GPO vers un emplacement autre que OneDrive.

Source Microsoft : Redirect and move Windows known folders to OneDrive

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/KFMOptInNoWizard
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\OneDrive'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Tenant ID
Set-ItemProperty -Path $k -Name 'KFMSilentOptIn' -Value '<valeur>' -Type String
# Show notification to users after folders have been redirected
# Options possibles :
#   No = 0
#   Yes = 1
Set-ItemProperty -Path $k -Name 'KFMSilentOptInWithNotification' -Value 0 -Type DWord
# Desktop
# décoché : 0
Set-ItemProperty -Path $k -Name 'KFMSilentOptInDesktop' -Value 1 -Type DWord
# Documents
# décoché : 0
Set-ItemProperty -Path $k -Name 'KFMSilentOptInDocuments' -Value 1 -Type DWord
# Pictures
# décoché : 0
Set-ItemProperty -Path $k -Name 'KFMSilentOptInPictures' -Value 1 -Type DWord

Désactiver

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

Revenir à « Non configuré »

# Revenir à « Non configuré » : OneDrive/KFMOptInNoWizard
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\OneDrive'
Remove-ItemProperty -Path $k -Name 'KFMSilentOptIn' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'KFMSilentOptInWithNotification' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'KFMSilentOptInDesktop' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'KFMSilentOptInDocuments' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'KFMSilentOptInPictures' -ErrorAction SilentlyContinue

Options (5)

LibelléContrôleValeur de registreType REGContraintes / détails
Tenant ID:KFMOptInNoWizard_TextBoxZone de textetextKFMSilentOptInREG_SZ
Obligatoire · Longueur max : 2000
Show notification to users after folders have been redirected:KFMOptInNoWizard_DropdownListe déroulanteenumKFMSilentOptInWithNotificationREG_DWORD
Choix par défaut (interface) : n° 0
LibelléValeur
NoREG_DWORD = 0
YesREG_DWORD = 1
DesktopKFMOptInNoWizard_Desktop_CheckboxCase à cocherbooleanKFMSilentOptInDesktopREG_DWORD
Défaut (interface) : true
Coché : REG_DWORD = 1
Décoché : REG_DWORD = 0
DocumentsKFMOptInNoWizard_Documents_CheckboxCase à cocherbooleanKFMSilentOptInDocumentsREG_DWORD
Défaut (interface) : true
Coché : REG_DWORD = 1
Décoché : REG_DWORD = 0
PicturesKFMOptInNoWizard_Pictures_CheckboxCase à cocherbooleanKFMSilentOptInPicturesREG_DWORD
Défaut (interface) : true
Coché : REG_DWORD = 1
Décoché : REG_DWORD = 0

Application

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

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