Default format for 'Publish': registry value publishformatUserHKCU\software\policies\microsoft\office\16.0\common\internet

Policy ID
L_DefaultformatforPublish
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 Office 2016 › Web Archives

Registry

publishformat

REG_DWORDUser
Enabled value
Depends on the option value
Element
Default format for 'Publish'
Options
ItemStored value
Web Archive (*.mht)2
Web Page (*.htm)1
Default0
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\common\internet]

; Options (use only one)
; Web Archive (*.mht)
"publishformat"=dword:00000002
; Web Page (*.htm)
"publishformat"=dword:00000001
; Default
"publishformat"=dword:00000000
CMD
:: Options (use only one)

:: Web Archive (*.mht)
reg add "HKCU\software\policies\microsoft\office\16.0\common\internet" /v "publishformat" /t REG_DWORD /d 2 /f
:: Web Page (*.htm)
reg add "HKCU\software\policies\microsoft\office\16.0\common\internet" /v "publishformat" /t REG_DWORD /d 1 /f
:: Default
reg add "HKCU\software\policies\microsoft\office\16.0\common\internet" /v "publishformat" /t REG_DWORD /d 0 /f
PowerShell
# Common: create the key
New-Item -Path 'HKCU:\software\policies\microsoft\office\16.0\common\internet' -Force | Out-Null

# Options (use only one)
# Web Archive (*.mht)
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\common\internet' -Name 'publishformat' -PropertyType DWord -Value 2 -Force | Out-Null
# Web Page (*.htm)
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\common\internet' -Name 'publishformat' -PropertyType DWord -Value 1 -Force | Out-Null
# Default
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\common\internet' -Name 'publishformat' -PropertyType DWord -Value 0 -Force | Out-Null