Configurer l’algorithme de hachage d’horodatage : valeur de Registre timestamphashalgUtilisateurHKCU\software\policies\microsoft\office\16.0\common\signatures
- ID de stratégie
- L_ConfigureTimeStampingHashingAlgorithm
- Étendue
- Configuration utilisateur
- Pris en charge sur
- Au minimum Windows Server 2008 R2 ou Windows 7
- Source
- Microsoft 365 Apps / Office Administrative Templates (version 5568.1000)
- Catégorie
- Microsoft Office 2016 › Paramètres de sécurité › Signatures numériques
Registre
timestamphashalg
REG_SZUtilisateur- Valeur si activée
- Dépend de la valeur de l'option
- Élément
- -
| Entrée | Valeur stockée |
|---|---|
| SHA1 | sha1 |
| SHA256 | sha256 |
| SHA384 | sha384 |
| SHA512 | sha512 |
Appliquer avec .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\common\signatures] ; Options (en utiliser une seule) ; SHA1 "timestamphashalg"="sha1" ; SHA256 "timestamphashalg"="sha256" ; SHA384 "timestamphashalg"="sha384" ; SHA512 "timestamphashalg"="sha512"
CMD
:: Options (en utiliser une seule) :: SHA1 reg add "HKCU\software\policies\microsoft\office\16.0\common\signatures" /v "timestamphashalg" /t REG_SZ /d "sha1" /f :: SHA256 reg add "HKCU\software\policies\microsoft\office\16.0\common\signatures" /v "timestamphashalg" /t REG_SZ /d "sha256" /f :: SHA384 reg add "HKCU\software\policies\microsoft\office\16.0\common\signatures" /v "timestamphashalg" /t REG_SZ /d "sha384" /f :: SHA512 reg add "HKCU\software\policies\microsoft\office\16.0\common\signatures" /v "timestamphashalg" /t REG_SZ /d "sha512" /f
PowerShell
# Commun : créer la clé New-Item -Path 'HKCU:\software\policies\microsoft\office\16.0\common\signatures' -Force | Out-Null # Options (en utiliser une seule) # SHA1 New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\common\signatures' -Name 'timestamphashalg' -PropertyType String -Value 'sha1' -Force | Out-Null # SHA256 New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\common\signatures' -Name 'timestamphashalg' -PropertyType String -Value 'sha256' -Force | Out-Null # SHA384 New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\common\signatures' -Name 'timestamphashalg' -PropertyType String -Value 'sha384' -Force | Out-Null # SHA512 New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\common\signatures' -Name 'timestamphashalg' -PropertyType String -Value 'sha512' -Force | Out-Null