Prompt users to confirm when they delete shared content
Cette stratégie n'a pas de traduction française dans les modèles de l'éditeur ; le texte original est en anglais.
Explication
When local synced files are deleted, which multiple users have access, a dialog appears informing the user that other users will no longer have access to that content, and asking them to confirm the action before OneDrive propagates deletes online. After confirming, deletes of other shared content for a short period of time do not cause additional confirmations. Other content continues to sync.
Enable this setting to prevent users from hiding the confirmation dialog. Each time the user deletes shared content, their confirmation is required before the item is deleted for everyone online.
Disable this setting to not show the delete confirmation message. Deletes will immediately be made in the cloud.
Do not configure this setting so users can choose to hide the warning, with the effects mentioned above.
Registre
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\OneDrive- Nom de la valeur
SharedContentDeleteConfirmation
| État | Valeur écrite |
|---|---|
| Activé | REG_DWORD = 1 |
| Désactivé | REG_DWORD = 0 |
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/SharedContentDeleteConfirmation
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\OneDrive'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'SharedContentDeleteConfirmation' -Value 1 -Type DWordDésactiver
# Désactiver : OneDrive/SharedContentDeleteConfirmation
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\OneDrive'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'SharedContentDeleteConfirmation' -Value 0 -Type DWordRevenir à « Non configuré »
# Revenir à « Non configuré » : OneDrive/SharedContentDeleteConfirmation
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\OneDrive'
Remove-ItemProperty -Path $k -Name 'SharedContentDeleteConfirmation' -ErrorAction SilentlyContinueApplication
Microsoft OneDrive (Microsoft) — modèles d'octobre 2026
Modèles d'octobre 2026 issus de pl4nty/web-admx-tool.