Configure legacy hashing algorithm: wartość rejestru legacyhashalgUżytkownikHKCU\software\policies\microsoft\office\16.0\common\signatures

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

Identyfikator zasady
L_SelectDigitalSignatureLegacyHashingAlgorithm
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 › Security Settings › Digital Signatures

Rejestr

legacyhashalg

REG_SZUżytkownik
Wartość włączona
Zależy od wartości opcji
Element
-
Opcje
PozycjaZapisana wartość
MD5md5
SHA1sha1
SHA256sha256
SHA384sha384
Zastosuj przez .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

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

; Opcje (użyj tylko jednej)
; MD5
"legacyhashalg"="md5"
; SHA1
"legacyhashalg"="sha1"
; SHA256
"legacyhashalg"="sha256"
; SHA384
"legacyhashalg"="sha384"
CMD
:: Opcje (użyj tylko jednej)

:: MD5
reg add "HKCU\software\policies\microsoft\office\16.0\common\signatures" /v "legacyhashalg" /t REG_SZ /d "md5" /f
:: SHA1
reg add "HKCU\software\policies\microsoft\office\16.0\common\signatures" /v "legacyhashalg" /t REG_SZ /d "sha1" /f
:: SHA256
reg add "HKCU\software\policies\microsoft\office\16.0\common\signatures" /v "legacyhashalg" /t REG_SZ /d "sha256" /f
:: SHA384
reg add "HKCU\software\policies\microsoft\office\16.0\common\signatures" /v "legacyhashalg" /t REG_SZ /d "sha384" /f
PowerShell
# Wspólne: utwórz klucz
New-Item -Path 'HKCU:\software\policies\microsoft\office\16.0\common\signatures' -Force | Out-Null

# Opcje (użyj tylko jednej)
# MD5
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\common\signatures' -Name 'legacyhashalg' -PropertyType String -Value 'md5' -Force | Out-Null
# SHA1
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\common\signatures' -Name 'legacyhashalg' -PropertyType String -Value 'sha1' -Force | Out-Null
# SHA256
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\common\signatures' -Name 'legacyhashalg' -PropertyType String -Value 'sha256' -Force | Out-Null
# SHA384
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\common\signatures' -Name 'legacyhashalg' -PropertyType String -Value 'sha384' -Force | Out-Null