Specify custom tags for Office telemetry data
Cette stratégie n'a pas de traduction française dans les modèles de l'éditeur ; le texte original est en anglais.
Explication
This policy setting allows you to add custom tags to the Office telemetry data that is sent by Office Telemetry Agent.
If you enable this policy setting, the specified custom tags are shown in Office Telemetry Dashboard, where you can filter the collected data by the tag name. You can specify any string that you want to categorize and filter the collected data (for example, department name, title of user, and so forth).
If you disable or do not configure this policy setting, no custom tags are shown in Office Telemetry Dashboard, and you cannot filter the data that is sent by Office Telemetry Agent.
Registre
HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\osm- 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 : office16/L_OfficeOSMCustomTags
$k = 'HKCU:\software\policies\microsoft\office\16.0\osm'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Tag 1
Set-ItemProperty -Path $k -Name 'tag1' -Value '<valeur>' -Type String
# Tag 2
Set-ItemProperty -Path $k -Name 'tag2' -Value '<valeur>' -Type String
# Tag 3
Set-ItemProperty -Path $k -Name 'tag3' -Value '<valeur>' -Type String
# Tag 4
Set-ItemProperty -Path $k -Name 'tag4' -Value '<valeur>' -Type StringDésactiver
# Désactiver : office16/L_OfficeOSMCustomTags
# Aucune valeur n'est écrite à l'état « Désactivé » (rien de défini dans l'ADMX)Revenir à « Non configuré »
# Revenir à « Non configuré » : office16/L_OfficeOSMCustomTags
$k = 'HKCU:\software\policies\microsoft\office\16.0\osm'
Remove-ItemProperty -Path $k -Name 'tag1' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'tag2' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'tag3' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'tag4' -ErrorAction SilentlyContinueOptions (4)
| Libellé | Contrôle | Valeur de registre | Type REG | Contraintes / détails |
|---|---|---|---|---|
| Tag 1:L_OfficeOSMCustomTagsTag1 | Zone de textetext | tag1 | REG_SZ | Longueur max : 64 |
| Tag 2:L_OfficeOSMCustomTagsTag2 | Zone de textetext | tag2 | REG_SZ | Longueur max : 64 |
| Tag 3:L_OfficeOSMCustomTagsTag3 | Zone de textetext | tag3 | REG_SZ | Longueur max : 64 |
| Tag 4:L_OfficeOSMCustomTagsTag4 | Zone de textetext | tag4 | REG_SZ | Longueur max : 64 |
Application
Microsoft 365 Apps / Office (Microsoft) — modèles de novembre 2026
Modèles officiels téléchargés le 12 novembre 2026.