Windows: How to flush all user profiles automatically?


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,

  1. 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.
  2. Under Computer Configuration, expand Administrative Templates, expand System, and then click User Profiles.
  3. In the details pane, double-click Delete user profiles older than a specified number of days on system restart.
  4. 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?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s