Hey everyone! I'm looking for the fastest method to remove user profiles on a Windows 11 machine. I've been using the System Properties to delete profiles, but it gets really tedious, especially since I have to do this for about 100 computers. I also tried deleting user files and then using regedit to remove the profiles, but that sometimes leads to issues later on. I only need to keep 3 profiles. Any efficient tips?
3 Answers
Hey, I'm curious—how did you end up with 100 PCs needing this? If storage isn't a concern, and users aren't local admins, they can't access their old profile data anyway, right? I usually just do this manually for our loaner laptops. Not that often, thankfully!
Using PowerShell is definitely the quickest way! For future reference, consider implementing Group Policy to automatically delete user profiles older than a set number of days on system restart. It could save you a lot of time down the line.
Have you considered using PowerShell? You can enumerate all the profiles and delete all but the ones you want to keep. It's much faster than manual deletion!
That's right! And while there's no specific module for this, you can utilize the WMI object "Win32_UserProfile" to help.
Just to clarify, does using this method remove the profiles from the registry as well, or only from the user folders?

I work in a school, and each user gets 2GB of space unless they're in specialized classes. Many students use the PCs, so storage fills up quickly!