Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Logoff Script To Delete Users Profile

Status
Not open for further replies.

Chusan

MIS
Nov 13, 2001
54
US
I was wondering if anyone has a logoff script that will delete a users profile when they log off. This is to prevent profiles from accumulating on the harddrive.

Thanks for any help.

---Chuck
 
Hello,

Did you ever find such a script? I am also interested in a script which would do the exact same thing; nothing worse than finding 5,000 profile directories on a hard drive.

--Chris
 
Couldn't find anything so we are just using delprof.exe to do this.
 
You don't need a script for this.
This change in the Windows Register will do the Trick

System Key: [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
Value Name: DeleteRoamingCache
Data Type: REG_DWORD (DWORD Value)
Value Data: (0 = disabled, 1 = enabled)
 
Will this setting work if we are not using roaming profiles (i.e. we just have a local default user profile but lots of students loggging on)? The profile directories build up pretty fast.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top