FIX: Device management could not be enabled, error -2145833241, 80192EE7 or 0x80180002 (Microsoft 365)
If you're unable to enroll a device in Intune or to add a Microsoft 365 work or school account to a Windows 11 PC due to the "Device management could not be enabled" error with error code "80192EE7" or "-2145833241" continue reading below to fix the problem.
