Cartelle di lavoro e modelli di Excel 97-2003: valore del Registro di sistema xl97workbooksandtemplatesUtenteHKCU\software\policies\microsoft\office\16.0\excel\security\fileblock

ID criterio
L_Excel972003WorkbooksAndTemplates
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 Excel 2016 › Opzioni di Excel › Sicurezza › Centro protezione › Impostazioni tipi file

Registro

xl97workbooksandtemplates

REG_DWORDUtente
Valore abilitato
Dipende dal valore dell'opzione
Elemento
Impostazione tipi file:
Opzioni
VoceValore memorizzato
Non bloccare0
Salvataggio bloccato1
Apertura/salvataggio bloccati, utilizza criterio per apertura2
Blocca3
Apri in Visualizzazione protetta4
Consenti modifica e apertura in Visualizzazione protetta5
Applica con .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\excel\security\fileblock]

; Opzioni (usarne solo una)
; Non bloccare
"xl97workbooksandtemplates"=dword:00000000
; Salvataggio bloccato
"xl97workbooksandtemplates"=dword:00000001
; Apertura/salvataggio bloccati, utilizza criterio per apertura
"xl97workbooksandtemplates"=dword:00000002
; Blocca
"xl97workbooksandtemplates"=dword:00000003
; Apri in Visualizzazione protetta
"xl97workbooksandtemplates"=dword:00000004
; Consenti modifica e apertura in Visualizzazione protetta
"xl97workbooksandtemplates"=dword:00000005
CMD
:: Opzioni (usarne solo una)

:: Non bloccare
reg add "HKCU\software\policies\microsoft\office\16.0\excel\security\fileblock" /v "xl97workbooksandtemplates" /t REG_DWORD /d 0 /f
:: Salvataggio bloccato
reg add "HKCU\software\policies\microsoft\office\16.0\excel\security\fileblock" /v "xl97workbooksandtemplates" /t REG_DWORD /d 1 /f
:: Apertura/salvataggio bloccati, utilizza criterio per apertura
reg add "HKCU\software\policies\microsoft\office\16.0\excel\security\fileblock" /v "xl97workbooksandtemplates" /t REG_DWORD /d 2 /f
:: Blocca
reg add "HKCU\software\policies\microsoft\office\16.0\excel\security\fileblock" /v "xl97workbooksandtemplates" /t REG_DWORD /d 3 /f
:: Apri in Visualizzazione protetta
reg add "HKCU\software\policies\microsoft\office\16.0\excel\security\fileblock" /v "xl97workbooksandtemplates" /t REG_DWORD /d 4 /f
:: Consenti modifica e apertura in Visualizzazione protetta
reg add "HKCU\software\policies\microsoft\office\16.0\excel\security\fileblock" /v "xl97workbooksandtemplates" /t REG_DWORD /d 5 /f
PowerShell
# Comune: crea la chiave
New-Item -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\security\fileblock' -Force | Out-Null

# Opzioni (usarne solo una)
# Non bloccare
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\security\fileblock' -Name 'xl97workbooksandtemplates' -PropertyType DWord -Value 0 -Force | Out-Null
# Salvataggio bloccato
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\security\fileblock' -Name 'xl97workbooksandtemplates' -PropertyType DWord -Value 1 -Force | Out-Null
# Apertura/salvataggio bloccati, utilizza criterio per apertura
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\security\fileblock' -Name 'xl97workbooksandtemplates' -PropertyType DWord -Value 2 -Force | Out-Null
# Blocca
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\security\fileblock' -Name 'xl97workbooksandtemplates' -PropertyType DWord -Value 3 -Force | Out-Null
# Apri in Visualizzazione protetta
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\security\fileblock' -Name 'xl97workbooksandtemplates' -PropertyType DWord -Value 4 -Force | Out-Null
# Consenti modifica e apertura in Visualizzazione protetta
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\security\fileblock' -Name 'xl97workbooksandtemplates' -PropertyType DWord -Value 5 -Force | Out-Null