azureblog.co.uk
← cd ~/intune-errors
// intune-errors · Enrollment

0x80090016NTE_BAD_KEYSET / Keyset does not exist

Device registration could not save the device key because the TPM keys were not accessible, usually because Windows is not the owner of the TPM.

Hex0x80090016
Decimal-2146893802 (unsigned 2148073494)
AreaEnrollment

How to fix it

Clear the TPM (Windows Security > Device security > Security processor details > Security processor troubleshooting) and restart the device.

Find it on the device

Enrolment errors are logged in Event Viewer under Applications and Services Logs › Microsoft › Windows › DeviceManagement-Enterprise-Diagnostics-Provider › Admin:

powershell3 lines
Get-WinEvent -LogName "Microsoft-Windows-DeviceManagement-Enterprise-Diagnostics-Provider/Admin" -MaxEvents 200 |
    Where-Object Message -match "0x80090016" |
    Format-List TimeCreated, Id, Message

Other enrollment errors

Search all 116 codes →