Link to home
Start Free TrialLog in
Avatar of Cassavatech
Cassavatech

asked on

Policy or Logoff Script to delete local profiles

We have several internet stations in our company which can be used by everybody. The problem we have now is that after a few weeks, the HDD is at 100% capacity because of the local profiles and its temporary internetfiles.

Is there a way to create a OU or Logoff script which deletes the profile used again  so that only All users, Default User are left after logoff ?
ASKER CERTIFIED SOLUTION
Avatar of victornegri
victornegri

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Most of this is taken up in temporary files.  You can set internet explorer to kill all the files on exit, Tools Internet options, all the way at the bottom, security, empty temporary internet files when browser is closed, then you set every person to login as guest, with no password, and you will never have the problem again.  If you want separate logins, it must be because of repeat people, and if so, why delete their profiles?  Just get rid of the temp files and you are done.
Avatar of rairdonm
rairdonm

If you choose to clear the internet files on browser close and want to change it for every user/computer in a group via script, the registry setting is:
>>Quoted from somewhere
You can also use the registry to configure IE to empty the Temporary Internet Files folder upon exiting the browser by performing the following steps:

   1. Start a registry editor (e.g., regedit.exe).
   2. Navigate to the HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Cache registry subkey.
   3. Double-click Persistent, set its value to 0, then click OK.
   4. Close the registry editor, then start IE for the change to take effect.

If it's a registry key, you can script it.

Delprof has the ability to scrap profiles older than xx days.
DELPROF /q /i /d: 15

the 15 is 15 days

You should already have a good login script (or batch file) that this can be plugged in to periodically or every time.
p.s.  I just elaborated on vic's and scrath's solutions...

You don't want to delete the profile directories without the tool delprof as this might screw up group policies...just in case you were thinking of giving that a try.

By default, this program installs into C:\Program Files\Windows Resource Kits\Tools
Avatar of Cassavatech

ASKER

delprof.exe is what I needed, thanks :)