Spécifier la compatibilité de chiffrement : valeur de Registre compatmode (onenote\security\crypto)UtilisateurHKCU\software\policies\microsoft\office\16.0\onenote\security\crypto

ID de stratégie
L_SpecifyEncryptionCompatibility
É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 › Sécurité › Chiffrement

Registre

compatmode

REG_DWORDUtilisateur
Valeur si activée
Dépend de la valeur de l'option
Élément
-
Options
EntréeValeur stockée
Utiliser le format hérité0
Utiliser le format nouvelle génération1
Enregistrer tous les nouveaux fichiers au format nouvelle génération2
Appliquer avec .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\onenote\security\crypto]

; Options (en utiliser une seule)
; Utiliser le format hérité
"compatmode"=dword:00000000
; Utiliser le format nouvelle génération
"compatmode"=dword:00000001
; Enregistrer tous les nouveaux fichiers au format nouvelle génération
"compatmode"=dword:00000002
CMD
:: Options (en utiliser une seule)

:: Utiliser le format hérité
reg add "HKCU\software\policies\microsoft\office\16.0\onenote\security\crypto" /v "compatmode" /t REG_DWORD /d 0 /f
:: Utiliser le format nouvelle génération
reg add "HKCU\software\policies\microsoft\office\16.0\onenote\security\crypto" /v "compatmode" /t REG_DWORD /d 1 /f
:: Enregistrer tous les nouveaux fichiers au format nouvelle génération
reg add "HKCU\software\policies\microsoft\office\16.0\onenote\security\crypto" /v "compatmode" /t REG_DWORD /d 2 /f
PowerShell
# Commun : créer la clé
New-Item -Path 'HKCU:\software\policies\microsoft\office\16.0\onenote\security\crypto' -Force | Out-Null

# Options (en utiliser une seule)
# Utiliser le format hérité
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\onenote\security\crypto' -Name 'compatmode' -PropertyType DWord -Value 0 -Force | Out-Null
# Utiliser le format nouvelle génération
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\onenote\security\crypto' -Name 'compatmode' -PropertyType DWord -Value 1 -Force | Out-Null
# Enregistrer tous les nouveaux fichiers au format nouvelle génération
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\onenote\security\crypto' -Name 'compatmode' -PropertyType DWord -Value 2 -Force | Out-Null