Unité de mesure par défaut utilisée dans OneNote : valeur de Registre measurementunitUtilisateurHKCU\software\policies\microsoft\office\16.0\onenote\options\other
- ID de stratégie
- L_DefaultunitofmeasurementusedinOneNote
- Étendue
- Configuration utilisateur
- Pris en charge sur
- Au minimum Windows Server 2008 R2 ou Windows 7
- Source
- Microsoft 365 Apps / Office Administrative Templates (version 5568.1000)
- Catégorie
- Microsoft OneNote 2016 › Options OneNote › Autre
Registre
measurementunit
REG_DWORDUtilisateur- Valeur si activée
- Dépend de la valeur de l'option
- Élément
- Indiquez l’unité de mesure par défaut :
| Entrée | Valeur stockée |
|---|---|
| Pouce | 0 |
| Centimètre | 1 |
| Millimètre | 2 |
| Point | 3 |
| Pica | 4 |
Appliquer avec .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\onenote\options\other] ; Options (en utiliser une seule) ; Pouce "measurementunit"=dword:00000000 ; Centimètre "measurementunit"=dword:00000001 ; Millimètre "measurementunit"=dword:00000002 ; Point "measurementunit"=dword:00000003 ; Pica "measurementunit"=dword:00000004
CMD
:: Options (en utiliser une seule) :: Pouce reg add "HKCU\software\policies\microsoft\office\16.0\onenote\options\other" /v "measurementunit" /t REG_DWORD /d 0 /f :: Centimètre reg add "HKCU\software\policies\microsoft\office\16.0\onenote\options\other" /v "measurementunit" /t REG_DWORD /d 1 /f :: Millimètre reg add "HKCU\software\policies\microsoft\office\16.0\onenote\options\other" /v "measurementunit" /t REG_DWORD /d 2 /f :: Point reg add "HKCU\software\policies\microsoft\office\16.0\onenote\options\other" /v "measurementunit" /t REG_DWORD /d 3 /f :: Pica reg add "HKCU\software\policies\microsoft\office\16.0\onenote\options\other" /v "measurementunit" /t REG_DWORD /d 4 /f
PowerShell
# Commun : créer la clé New-Item -Path 'HKCU:\software\policies\microsoft\office\16.0\onenote\options\other' -Force | Out-Null # Options (en utiliser une seule) # Pouce New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\onenote\options\other' -Name 'measurementunit' -PropertyType DWord -Value 0 -Force | Out-Null # Centimètre New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\onenote\options\other' -Name 'measurementunit' -PropertyType DWord -Value 1 -Force | Out-Null # Millimètre New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\onenote\options\other' -Name 'measurementunit' -PropertyType DWord -Value 2 -Force | Out-Null # Point New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\onenote\options\other' -Name 'measurementunit' -PropertyType DWord -Value 3 -Force | Out-Null # Pica New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\onenote\options\other' -Name 'measurementunit' -PropertyType DWord -Value 4 -Force | Out-Null