Formato di file predefinito: valore del Registro di sistema defaultformat (excel\options)UtenteHKCU\software\policies\microsoft\office\16.0\excel\options

ID criterio
L_SaveExcelfilesas
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 › Salva

Registro

defaultformat

REG_DWORDUtente
Valore abilitato
Dipende dal valore dell'opzione
Elemento
Salva file di Excel come
Opzioni
VoceValore memorizzato
Cartella di lavoro di Excel (*.xlsx)51
Cartella di lavoro con attivazione macro di Excel (*.xlsm)52
Cartella di lavoro binaria di Excel (*.xlsb)50
Pagina Web (*.htm; *.html)44
Cartella di lavoro di Excel 97-2003 (*.xls)56
Cartella di lavoro di Excel 5.0/95 (*.xls)39
Formato ODS (*.ods)60
Applica con .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\excel\options]

; Opzioni (usarne solo una)
; Cartella di lavoro di Excel (*.xlsx)
"defaultformat"=dword:00000033
; Cartella di lavoro con attivazione macro di Excel (*.xlsm)
"defaultformat"=dword:00000034
; Cartella di lavoro binaria di Excel (*.xlsb)
"defaultformat"=dword:00000032
; Pagina Web (*.htm; *.html)
"defaultformat"=dword:0000002c
; Cartella di lavoro di Excel 97-2003 (*.xls)
"defaultformat"=dword:00000038
; Cartella di lavoro di Excel 5.0/95 (*.xls)
"defaultformat"=dword:00000027
; Formato ODS (*.ods)
"defaultformat"=dword:0000003c
CMD
:: Opzioni (usarne solo una)

:: Cartella di lavoro di Excel (*.xlsx)
reg add "HKCU\software\policies\microsoft\office\16.0\excel\options" /v "defaultformat" /t REG_DWORD /d 51 /f
:: Cartella di lavoro con attivazione macro di Excel (*.xlsm)
reg add "HKCU\software\policies\microsoft\office\16.0\excel\options" /v "defaultformat" /t REG_DWORD /d 52 /f
:: Cartella di lavoro binaria di Excel (*.xlsb)
reg add "HKCU\software\policies\microsoft\office\16.0\excel\options" /v "defaultformat" /t REG_DWORD /d 50 /f
:: Pagina Web (*.htm; *.html)
reg add "HKCU\software\policies\microsoft\office\16.0\excel\options" /v "defaultformat" /t REG_DWORD /d 44 /f
:: Cartella di lavoro di Excel 97-2003 (*.xls)
reg add "HKCU\software\policies\microsoft\office\16.0\excel\options" /v "defaultformat" /t REG_DWORD /d 56 /f
:: Cartella di lavoro di Excel 5.0/95 (*.xls)
reg add "HKCU\software\policies\microsoft\office\16.0\excel\options" /v "defaultformat" /t REG_DWORD /d 39 /f
:: Formato ODS (*.ods)
reg add "HKCU\software\policies\microsoft\office\16.0\excel\options" /v "defaultformat" /t REG_DWORD /d 60 /f
PowerShell
# Comune: crea la chiave
New-Item -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\options' -Force | Out-Null

# Opzioni (usarne solo una)
# Cartella di lavoro di Excel (*.xlsx)
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\options' -Name 'defaultformat' -PropertyType DWord -Value 51 -Force | Out-Null
# Cartella di lavoro con attivazione macro di Excel (*.xlsm)
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\options' -Name 'defaultformat' -PropertyType DWord -Value 52 -Force | Out-Null
# Cartella di lavoro binaria di Excel (*.xlsb)
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\options' -Name 'defaultformat' -PropertyType DWord -Value 50 -Force | Out-Null
# Pagina Web (*.htm; *.html)
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\options' -Name 'defaultformat' -PropertyType DWord -Value 44 -Force | Out-Null
# Cartella di lavoro di Excel 97-2003 (*.xls)
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\options' -Name 'defaultformat' -PropertyType DWord -Value 56 -Force | Out-Null
# Cartella di lavoro di Excel 5.0/95 (*.xls)
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\options' -Name 'defaultformat' -PropertyType DWord -Value 39 -Force | Out-Null
# Formato ODS (*.ods)
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\options' -Name 'defaultformat' -PropertyType DWord -Value 60 -Force | Out-Null