Deleting Intune Users (Because I forgot about the registry)

TheJoeCoder

windowssysadminintune

164 Words … ⏲ Reading Time:44 Seconds

2025-03-25 12:51 +0000


So, you ran out of space on an Intune managed device. Like mine, your first inclination may be to delete the user folders in the c:\users directory via booting into a USB drive. However, this will break those deleted users when they try to sign in again, instead logging them into a temporary account. When running CMD, your user profile location seems to be C:\Users\YOURDOMAIN.TEMP but whoami returns yourdomain\user. Hmm.

The solution? Delete the users from the registry too, else Windows will complain.

Go to regedit from a local account (or from a recovery USB importing the hive): HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList

Then delete all the Intune users whose folders you deleted. These will probably begin with S-1-12-1. Be careful not to delete the folder or the registry entry of the user who enrolled the computer, otherwise bad things may happen - I don’t know but I suspect that user disappearing may be a problem for how Intune works.

Log out, reboot, and it should work.