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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to delete local profile when a user logs off

Status
Not open for further replies.

sx3

Technical User
Jun 27, 2003
45
GB
Does any on now how I could do the following:

When a user logs off I want the local profile to be deleted. Therefore when anyone logs on there should not be any local profiles apart from the administrator.

Would this be done by scripting, batch job, a service…or what ?

Many thanks
 
Hi,

1. You can use delprof from the Resource Kit.
2. If you wan't to avoid locally cached profiles you can edit the registry
to
delete the profile during logoff:

HKLM\Software\Microsoft\Windows NT\CurrentVersion\winlogon\
Value: DeleteRoamingCache
Type: REG_DWORD
Value: 1

You can use GPOs to distribute this setting, and also use delprof in a
logon/logoff script.

 
To add to paulhtomas's notes above, see this discussion:
thread779-550783
 
Exelent. Delprof worked Beautifully. Many thanks for your quick responce.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top