[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1226
  • Last Modified:

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 ?
0
Cassavatech
Asked:
Cassavatech
1 Solution
 
victornegriCommented:
You can use the delprof utility in the Windows 2003 Resource Kit or Remote Profile Cleaner:

Remove Profile Cleaner:
http://www.techspot.com/downloads/774-remote-profile-cleaner.html

Delprof:
http://www.microsoft.com/downloads/details.aspx?FamilyID=901A9B95-6063-4462-8150-360394E98E1E&displaylang=en


0
 
scrathcyboyCommented:
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.
0
 
rairdonmCommented:
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.
0
 
rairdonmCommented:
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
0
 
CassavatechAuthor Commented:
delprof.exe is what I needed, thanks :)
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now