Selecionar algoritmo de hash de assinatura digital: valor do Registro signaturehashalgUsuárioHKCU\software\policies\microsoft\office\16.0\common\signatures

ID da política
L_SelectDigitalSignatureHashingAlgorithm
Escopo
Configuração do Usuário
Compatível com
Windows Server 2008 R2 ou Windows 7
Fonte
Microsoft 365 Apps / Office Administrative Templates (versão 5568.1000)
Categoria
Microsoft Office 2016 › Configurações de Segurança › Assinaturas digitais

Registro

signaturehashalg

REG_SZUsuário
Valor habilitado
Depende do valor da opção
Elemento
-
Opções
ItemValor armazenado
SHA1sha1
SHA256sha256
SHA384sha384
SHA512sha512
Aplicar com .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

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

; Opções (use apenas uma)
; SHA1
"signaturehashalg"="sha1"
; SHA256
"signaturehashalg"="sha256"
; SHA384
"signaturehashalg"="sha384"
; SHA512
"signaturehashalg"="sha512"
CMD
:: Opções (use apenas uma)

:: SHA1
reg add "HKCU\software\policies\microsoft\office\16.0\common\signatures" /v "signaturehashalg" /t REG_SZ /d "sha1" /f
:: SHA256
reg add "HKCU\software\policies\microsoft\office\16.0\common\signatures" /v "signaturehashalg" /t REG_SZ /d "sha256" /f
:: SHA384
reg add "HKCU\software\policies\microsoft\office\16.0\common\signatures" /v "signaturehashalg" /t REG_SZ /d "sha384" /f
:: SHA512
reg add "HKCU\software\policies\microsoft\office\16.0\common\signatures" /v "signaturehashalg" /t REG_SZ /d "sha512" /f
PowerShell
# Comum: criar a chave
New-Item -Path 'HKCU:\software\policies\microsoft\office\16.0\common\signatures' -Force | Out-Null

# Opções (use apenas uma)
# SHA1
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\common\signatures' -Name 'signaturehashalg' -PropertyType String -Value 'sha1' -Force | Out-Null
# SHA256
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\common\signatures' -Name 'signaturehashalg' -PropertyType String -Value 'sha256' -Force | Out-Null
# SHA384
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\common\signatures' -Name 'signaturehashalg' -PropertyType String -Value 'sha384' -Force | Out-Null
# SHA512
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\common\signatures' -Name 'signaturehashalg' -PropertyType String -Value 'sha512' -Force | Out-Null