Blocca le sezioni protette da password all'uscita da esse: valore del Registro di sistema locksectionsimmediatelyUtenteHKCU\software\policies\microsoft\office\16.0\onenote\security

ID criterio
L_LockpasswordprotectedsectionsassoonasInavigateawayfromthem
Ambito
Configurazione utente
Supportato in
Almeno Windows Server 2008 R2 o Windows 7
Origine
Microsoft 365 Apps / Office Administrative Templates (versione 5568.1000)
Categoria
Microsoft OneNote 2016 › Opzioni di OneNote › Password

Registro

locksectionsimmediately

REG_DWORDUtente
Valore abilitato
1
Valore disabilitato
0
Applica con .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

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

; Opzioni (usarne solo una)
; Abilitato
"locksectionsimmediately"=dword:00000001
; Disabilitato
"locksectionsimmediately"=dword:00000000
CMD
:: Opzioni (usarne solo una)

:: Abilitato
reg add "HKCU\software\policies\microsoft\office\16.0\onenote\security" /v "locksectionsimmediately" /t REG_DWORD /d 1 /f
:: Disabilitato
reg add "HKCU\software\policies\microsoft\office\16.0\onenote\security" /v "locksectionsimmediately" /t REG_DWORD /d 0 /f
PowerShell
# Comune: crea la chiave
New-Item -Path 'HKCU:\software\policies\microsoft\office\16.0\onenote\security' -Force | Out-Null

# Opzioni (usarne solo una)
# Abilitato
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\onenote\security' -Name 'locksectionsimmediately' -PropertyType DWord -Value 1 -Force | Out-Null
# Disabilitato
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\onenote\security' -Name 'locksectionsimmediately' -PropertyType DWord -Value 0 -Force | Out-Null