Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am partly managing a school which uses temporary local profiles. (NOT server-saved profiles). The computers are automatically getting restored regularly, but inbetween alot of temporary profiles gather on the computers, sometimes even completely filling up the hard drives, which turns to a real problem then.

How can I automatically delete the profile when a user logs out?

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\DeleteRoamingCache does only remove those "server-saved" roaming profiles.
Also, deleting the profiles just on startup using delprof or such is a sub-optimal solution which I would rather not like to use. It should be removed just when logging out.

share|improve this question

You can make them Mandatory profiles. This should erase them after they log off.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.