無効なハッシュ アルゴリズムを構成する のレジストリ値 invalidhashalgユーザーHKCU\software\policies\microsoft\office\16.0\common\signatures

ポリシー ID
L_SelectDigitalSignatureInvalidHashingAlgorithm
適用対象
ユーザーの構成
サポートされるバージョン
Windows Server 2008 R2、Windows 7 またはそれ以降
出典
Microsoft 365 Apps / Office Administrative Templates (バージョン 5568.1000)
カテゴリ
Microsoft Office 2016 › セキュリティ設定 › デジタル署名

レジストリ

invalidhashalg

REG_SZユーザー
有効時の値
オプションの値に依存
要素
-
オプション
項目保存される値
MD5md5
SHA-1sha1
SHA-256sha256
SHA-384sha384
.reg · CMD · PowerShell で適用する
.reg
Windows Registry Editor Version 5.00

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

; 選択項目 (1 つだけ使用)
; MD5
"invalidhashalg"="md5"
; SHA-1
"invalidhashalg"="sha1"
; SHA-256
"invalidhashalg"="sha256"
; SHA-384
"invalidhashalg"="sha384"
CMD
:: 選択項目 (1 つだけ使用)

:: MD5
reg add "HKCU\software\policies\microsoft\office\16.0\common\signatures" /v "invalidhashalg" /t REG_SZ /d "md5" /f
:: SHA-1
reg add "HKCU\software\policies\microsoft\office\16.0\common\signatures" /v "invalidhashalg" /t REG_SZ /d "sha1" /f
:: SHA-256
reg add "HKCU\software\policies\microsoft\office\16.0\common\signatures" /v "invalidhashalg" /t REG_SZ /d "sha256" /f
:: SHA-384
reg add "HKCU\software\policies\microsoft\office\16.0\common\signatures" /v "invalidhashalg" /t REG_SZ /d "sha384" /f
PowerShell
# 共通: キーを作成
New-Item -Path 'HKCU:\software\policies\microsoft\office\16.0\common\signatures' -Force | Out-Null

# 選択項目 (1 つだけ使用)
# MD5
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\common\signatures' -Name 'invalidhashalg' -PropertyType String -Value 'md5' -Force | Out-Null
# SHA-1
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\common\signatures' -Name 'invalidhashalg' -PropertyType String -Value 'sha1' -Force | Out-Null
# SHA-256
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\common\signatures' -Name 'invalidhashalg' -PropertyType String -Value 'sha256' -Force | Out-Null
# SHA-384
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\common\signatures' -Name 'invalidhashalg' -PropertyType String -Value 'sha384' -Force | Out-Null