Configure legacy DSA public key size: registry value legacydsabitsUserHKCU\software\policies\microsoft\office\16.0\common\signatures

Policy ID
L_SelectDigitalSignatureLegacyDSABits
Scope
User Configuration
Supported on
At least Windows Server 2008 R2 or Windows 7
Source
Microsoft 365 Apps / Office Administrative Templates (version 5568.1000)
Category
Microsoft Office 2016 › Security Settings › Digital Signatures

Registry

legacydsabits

REG_DWORDUser
Enabled value
Depends on the option value
Element
-
Options
ItemStored value
00
512512
768768
10241024
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

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

; Options (use only one)
; 0
"legacydsabits"=dword:00000000
; 512
"legacydsabits"=dword:00000200
; 768
"legacydsabits"=dword:00000300
; 1024
"legacydsabits"=dword:00000400
CMD
:: Options (use only one)

:: 0
reg add "HKCU\software\policies\microsoft\office\16.0\common\signatures" /v "legacydsabits" /t REG_DWORD /d 0 /f
:: 512
reg add "HKCU\software\policies\microsoft\office\16.0\common\signatures" /v "legacydsabits" /t REG_DWORD /d 512 /f
:: 768
reg add "HKCU\software\policies\microsoft\office\16.0\common\signatures" /v "legacydsabits" /t REG_DWORD /d 768 /f
:: 1024
reg add "HKCU\software\policies\microsoft\office\16.0\common\signatures" /v "legacydsabits" /t REG_DWORD /d 1024 /f
PowerShell
# Common: create the key
New-Item -Path 'HKCU:\software\policies\microsoft\office\16.0\common\signatures' -Force | Out-Null

# Options (use only one)
# 0
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\common\signatures' -Name 'legacydsabits' -PropertyType DWord -Value 0 -Force | Out-Null
# 512
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\common\signatures' -Name 'legacydsabits' -PropertyType DWord -Value 512 -Force | Out-Null
# 768
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\common\signatures' -Name 'legacydsabits' -PropertyType DWord -Value 768 -Force | Out-Null
# 1024
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\common\signatures' -Name 'legacydsabits' -PropertyType DWord -Value 1024 -Force | Out-Null