旧式のハッシュ アルゴリズムを構成する のレジストリ値 legacyhashalgユーザーHKCU\software\policies\microsoft\office\16.0\common\signatures
- ポリシー ID
- L_SelectDigitalSignatureLegacyHashingAlgorithm
- 適用対象
- ユーザーの構成
- サポートされるバージョン
- Windows Server 2008 R2、Windows 7 またはそれ以降
- 出典
- Microsoft 365 Apps / Office Administrative Templates (バージョン 5568.1000)
- カテゴリ
- Microsoft Office 2016 › セキュリティ設定 › デジタル署名
レジストリ
legacyhashalg
REG_SZユーザー- 有効時の値
- オプションの値に依存
- 要素
- -
| 項目 | 保存される値 |
|---|---|
| MD5 | md5 |
| SHA-1 | sha1 |
| SHA-256 | sha256 |
| SHA-384 | sha384 |
.reg · CMD · PowerShell で適用する
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\common\signatures] ; 選択項目 (1 つだけ使用) ; MD5 "legacyhashalg"="md5" ; SHA-1 "legacyhashalg"="sha1" ; SHA-256 "legacyhashalg"="sha256" ; SHA-384 "legacyhashalg"="sha384"
CMD
:: 選択項目 (1 つだけ使用) :: MD5 reg add "HKCU\software\policies\microsoft\office\16.0\common\signatures" /v "legacyhashalg" /t REG_SZ /d "md5" /f :: SHA-1 reg add "HKCU\software\policies\microsoft\office\16.0\common\signatures" /v "legacyhashalg" /t REG_SZ /d "sha1" /f :: SHA-256 reg add "HKCU\software\policies\microsoft\office\16.0\common\signatures" /v "legacyhashalg" /t REG_SZ /d "sha256" /f :: SHA-384 reg add "HKCU\software\policies\microsoft\office\16.0\common\signatures" /v "legacyhashalg" /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 'legacyhashalg' -PropertyType String -Value 'md5' -Force | Out-Null # SHA-1 New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\common\signatures' -Name 'legacyhashalg' -PropertyType String -Value 'sha1' -Force | Out-Null # SHA-256 New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\common\signatures' -Name 'legacyhashalg' -PropertyType String -Value 'sha256' -Force | Out-Null # SHA-384 New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\common\signatures' -Name 'legacyhashalg' -PropertyType String -Value 'sha384' -Force | Out-Null