Skip to main content

Error 0x8007064c: Device Already Enrolled

Error Message

The machine is already enrolled.

Error Details

PropertyValue
Error Code (Hex)0x8007064c
Error Code (Dec)-2147024308

Description

info

This error occurs during Windows device enrollment when the system detects existing enrollment state information. This can happen with previously enrolled devices, cloned images containing enrollment data, or when remnants of previous enrollments remain on the system. Resolution typically requires removal of existing enrollment artifacts.

Common Causes

🔄 Previous Enrollment State

Enrollment conflicts often stem from previous device management states. Device might have been previously enrolled in Intune. Cloned images may contain enrollment data from source device. Account certificates from previous enrollments could remain on system. Understanding enrollment state management is crucial for resolution.

📱 System Artifacts

System-level remnants can prevent new enrollments. Certificates from previous enrollments might persist in system store. Registry keys containing enrollment data could remain after unenrollment. Management agent configurations might retain previous state information. These artifacts require systematic cleanup for successful enrollment.

Resolution Steps

1️⃣ Certificate Cleanup

Begin with removal of existing enrollment certificates:

  1. Open MMC (Run -> MMC)
  2. Add Certificates snap-in for Computer account
  3. Navigate to Personal > Certificates
  4. Locate and delete Intune cert issued by Sc_Online_Issuing

2️⃣ Registry Cleanup

Remove enrollment-related registry keys:

  1. Delete if exists: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\OnlineManagement
  2. Delete if exists: KEY_CLASSES_ROOT\Installer\Products\6985F0077D3EEB44AB6849B5D7913E95
Registry Modification

Back up the registry before making any changes. Incorrect registry modifications can cause serious system issues.

3️⃣ Enrollment Retry

After cleanup, attempt device enrollment:

  1. Verify all cleanup steps completed
  2. Initiate new enrollment process
  3. Monitor for successful completion
  4. Document any new error messages

Best Practices

👨‍💻 For IT Administrators

Effective enrollment management requires attention to system state and cleanup procedures. Implement comprehensive enrollment state verification. Maintain documentation of cleanup procedures. Develop clear processes for handling enrollment conflicts. Create systematic approaches to artifact removal. Consider implementing automated cleanup tools.

🔄 For Enrollment Management

Successful enrollment requires thorough system preparation. Develop clear processes for enrollment state verification. Maintain accurate documentation of cleanup requirements. Implement thorough testing procedures for enrollments. Create comprehensive documentation of resolution steps.

Troubleshooting Tips

Cleanup Process

When addressing enrollment conflicts, follow systematic cleanup procedures. Verify complete removal of certificates. Check all registry locations thoroughly. Document cleanup steps performed. Test enrollment after each major change.

Important Considerations

System modifications require careful attention. Back up registry before changes. Document all removed items. Consider system restore point creation. Verify system stability after changes.

Additional Notes

💡 Complete cleanup required

🔄 Registry backup important

⚠️ Certificate removal necessary

📱 Document all changes

Cleanup Process Guide

  1. Certificate Management

    • Open certificate manager
    • Locate Intune certificates
    • Remove enrollment certs
    • Document removals
  2. Registry Cleanup

    • Backup registry first
    • Remove enrollment keys
    • Verify key removal
    • Test system stability
  3. Enrollment Process

    • Verify cleanup complete
    • Attempt enrollment
    • Monitor progress
    • Document results
Best Practice

Always create system backups and document all changes when performing enrollment cleanup procedures to ensure safe and successful resolution.