How do you delete all user profiles on a Windows Computer or server? Don’t do it manually or don’t search for third-party tools or scripts. You do that very easily by local policy or group policy. Al you have to do is,
- Click Start, type gpedit.msc in the Start Search box, and then click gpedit in the Programs list.
If you are prompted for an administrator password or for confirmation, type the password, or click Continue.
- Under Computer Configuration, expand Administrative Templates, expand System, and then click User Profiles.
- In the details pane, double-click Delete user profiles older than a specified number of days on system restart.
- Close all dialog boxes.
Whenever you reboot the computer/server, all user profiles will be deleted.
If you don’t reboot the computer/server often, then you may look for other scripted solutions.
One thought on “Windows: How to flush all user profiles automatically?”
This is a real great tip for SMBs that use computers in conference rooms! It will help me out a lot!