Win11 - Remove User - Azure AD
16 minutes ago, ChrisLoudon said:Is there a way of removing a user / user files from a Windows 11 machine when they don't show up in the Control Panel > Users list?
Deleting the C:\Users\Username folder and the key under HKLM\Software\Microsoft\Windows NT\CurrentVersion\ProfileList that goes with it should remove everything as though that account never logged in.
You can do the same thing in a GUI if you run control userpasswords2 as admin from an elevated command prompt. That will present you with a list of all the local and domain accounts that have logged into that particular machine. You can highlight the ones you don't want and click "Remove", which will automatically delete the local files and the key under ProfileList for you.
Just deleting the folder will remove the files, but if that account ever logs in again they'll get the "you're running a temporary account" alert and their files won't persist. (I know that's not relevant in this particular case, but it's a good tool to keep in your back pocket for troubleshooting profile issues. Rename the old C:\Users\Username folder, export and delete the registry key, then have the user log back in. They'll get a fresh profile and you can recover their documents, AppData folders, and anything else that didn't sync with OneDrive.)
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now