Default unit of measurement used in OneNote: registry value measurementunitUserHKCU\software\policies\microsoft\office\16.0\onenote\options\other
- Policy ID
- L_DefaultunitofmeasurementusedinOneNote
- Scope
- User Configuration
- Supported on
- At least Windows Server 2008 R2 or Windows 7
- Source
- Microsoft 365 Apps / Office Administrative Templates (version 5568.1000)
- Category
- Microsoft OneNote 2016 › OneNote Options › Other
Registry
measurementunit
REG_DWORDUser- Enabled value
- Depends on the option value
- Element
- Specify default unit of measurement:
| Item | Stored value |
|---|---|
| Inch | 0 |
| Centimeter | 1 |
| Millimeter | 2 |
| Point | 3 |
| Pica | 4 |
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\onenote\options\other] ; Options (use only one) ; Inch "measurementunit"=dword:00000000 ; Centimeter "measurementunit"=dword:00000001 ; Millimeter "measurementunit"=dword:00000002 ; Point "measurementunit"=dword:00000003 ; Pica "measurementunit"=dword:00000004
CMD
:: Options (use only one) :: Inch reg add "HKCU\software\policies\microsoft\office\16.0\onenote\options\other" /v "measurementunit" /t REG_DWORD /d 0 /f :: Centimeter reg add "HKCU\software\policies\microsoft\office\16.0\onenote\options\other" /v "measurementunit" /t REG_DWORD /d 1 /f :: Millimeter 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
# Common: create the key New-Item -Path 'HKCU:\software\policies\microsoft\office\16.0\onenote\options\other' -Force | Out-Null # Options (use only one) # Inch New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\onenote\options\other' -Name 'measurementunit' -PropertyType DWord -Value 0 -Force | Out-Null # Centimeter New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\onenote\options\other' -Name 'measurementunit' -PropertyType DWord -Value 1 -Force | Out-Null # Millimeter 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