Default format for 'Publish': wartość rejestru publishformatUżytkownikHKCU\software\policies\microsoft\office\16.0\common\internet

Brak oficjalnego tekstu w tym języku (wyświetlono oryginał angielski)

Identyfikator zasady
L_DefaultformatforPublish
Zakres
Konfiguracja użytkownika
Obsługiwane w systemach
System Windows Server 2008 R2 lub nowszy albo system Windows 7
Źródło
Microsoft 365 Apps / Office Administrative Templates (wersja 5568.1000)
Kategoria
Microsoft Office 2016 › Web Archives

Rejestr

publishformat

REG_DWORDUżytkownik
Wartość włączona
Zależy od wartości opcji
Element
Default format for 'Publish'
Opcje
PozycjaZapisana wartość
Web Archive (*.mht)2
Web Page (*.htm)1
Default0
Zastosuj przez .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

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

; Opcje (użyj tylko jednej)
; Web Archive (*.mht)
"publishformat"=dword:00000002
; Web Page (*.htm)
"publishformat"=dword:00000001
; Default
"publishformat"=dword:00000000
CMD
:: Opcje (użyj tylko jednej)

:: 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
# Wspólne: utwórz klucz
New-Item -Path 'HKCU:\software\policies\microsoft\office\16.0\common\internet' -Force | Out-Null

# Opcje (użyj tylko jednej)
# 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