Open in the explorer

Enable Device Health Attestation Monitoring and Reporting

Activez la surveillance et la création de rapports pour l’attestation d’intégrité de l’appareil

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › System › Device Health Attestation Service FR: Configuration ordinateur › Stratégies › Modèles d'administration › Système › Service Attestation d’intégrité de l’appareil
Supported on
At least Windows Server 2016, Windows 10 Version 1709 FR: Windows Server 2016, Windows 10 version 1709 ou versions supérieures
ADMX file
TPM.admx
Internal name
TPM/OptIntoDSHA_Name

Explanation

This group policy enables Device Health Attestation reporting (DHA-report) on supported devices. It enables supported devices to send Device Health Attestation related information (device boot logs, PCR values, TPM certificate, etc.) to Device Health Attestation Service (DHA-Service) every time a device starts. Device Health Attestation Service validates the security state and health of the devices, and makes the findings accessible to enterprise administrators via a cloud based reporting portal. This policy is independent of DHA reports that are initiated by device manageability solutions (like MDM or SCCM), and will not interfere with their workflows.

French text from Windows 11 26H2

Cette stratégie de groupe active la création de rapports d’attestation d’intégrité de l’appareil (rapport DHA) sur les appareils pris en charge. Elle permet aux appareils pris en charge d’envoyer des informations associées à l’attestation d’intégrité de l’appareil (journaux de démarrage des appareils, valeurs du PCR, certificat TPM, etc.) au service d’attestation d’intégrité de l’appareil (service DHA) chaque fois qu’un appareil démarre. Le service d’attestation d’intégrité de l’appareil valide l’état de la sécurité et l’intégrité des appareils et rend les recherches accessibles aux administrateurs de l’entreprise par l’intermédiaire d’un portail de création de rapports basé sur un cloud. Cette stratégie est indépendante des rapports DHA initiés par les solutions de facilité de gestion des appareils (par exemple MDM ou SCCM) et n’interfère pas avec leurs flux de travail.

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\DeviceHealthAttestationService
Value name
EnableDeviceHealthAttestationService
StateValue written
EnabledREG_DWORD = 1
DisabledREG_DWORD = 0

PowerShell

PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.

Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.

Enable

# Enable: TPM/OptIntoDSHA_Name
$k = 'HKLM:\Software\Policies\Microsoft\DeviceHealthAttestationService'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'EnableDeviceHealthAttestationService' -Value 1 -Type DWord

Disable

# Disable: TPM/OptIntoDSHA_Name
$k = 'HKLM:\Software\Policies\Microsoft\DeviceHealthAttestationService'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'EnableDeviceHealthAttestationService' -Value 0 -Type DWord

Revert to "Not configured"

# Revert to "Not configured": TPM/OptIntoDSHA_Name
$k = 'HKLM:\Software\Policies\Microsoft\DeviceHealthAttestationService'
Remove-ItemProperty -Path $k -Name 'EnableDeviceHealthAttestationService' -ErrorAction SilentlyContinue

Availability

Windows Server