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

0x8007064CThe machine is already enrolled.

Enrolment fails because the computer was previously enrolled, was built from a cloned image of an enrolled computer, or still holds the previous account certificate.

Hex0x8007064C
Decimal-2147023284 (unsigned 2147944012)
AreaEnrollment

How to fix it

Delete the Intune certificate issued by Sc_Online_Issuing from the computer Personal store and the HKLM\SOFTWARE\Microsoft\OnlineManagement registry key (back up the registry first), then try to enrol again.

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 "0x8007064C" |
    Format-List TimeCreated, Id, Message

Other enrollment errors

Search all 116 codes →