Delete Profile on Logout?

G

Guest

Does anybody know of a way to delete users profiles when they logoff
automatically? This is for a lab environment, where many users will be
logging on, and their profiles just take up too much space, so I want them to
just be rebuilt everytime they log on. Is there someway possibly to have a
logoff script run delprof.exe or something? Please be very specific in
scripting, as I don't know that much about it. Thanks,
Jason Ryon
 
C

Carey Frisch [MVP]

How To Assign a Mandatory User Profile in Windows XP
http://support.microsoft.com/default.aspx?scid=kb;en-us;307800

--
Carey Frisch
Microsoft MVP
Windows XP - Shell/User
Microsoft Newsgroups

Get Windows XP Service Pack 2 with Advanced Security Technologies:
http://www.microsoft.com/athome/security/protect/windowsxp/choose.mspx

-------------------------------------------------------------------------------------------

:

| Does anybody know of a way to delete users profiles when they logoff
| automatically? This is for a lab environment, where many users will be
| logging on, and their profiles just take up too much space, so I want them to
| just be rebuilt everytime they log on. Is there someway possibly to have a
| logoff script run delprof.exe or something? Please be very specific in
| scripting, as I don't know that much about it. Thanks,
| Jason Ryon
 
T

Torgeir Bakken \(MVP\)

Jason said:
Does anybody know of a way to delete users profiles when they logoff
automatically? This is for a lab environment, where many users will be
logging on, and their profiles just take up too much space, so I want them to
just be rebuilt everytime they log on. Is there someway possibly to have a
logoff script run delprof.exe or something? Please be very specific in
scripting, as I don't know that much about it.
Hi

You will not be able to delete current user's profile in a logoff
script, because the profile is still locked in this stage.

I assume the computers are members of an Active Directory domain based
on some of your previous posts.

You could consider using Microsoft's Delprof.exe in e.g. a computer
startup or shutdown script (with a GPO) that runs as part of the boot
up process (before the user logs in) or shutdown process (after the
user is logged off).

To be able to access files (e.g. Delprof.exe) over the network from
the computer startup/shutdown script, you could put the file(s) on a
network share and grant read access for the AD group "Domain Computers"
to the share.


More about Delprof.exe here:
http://groups.google.co.uk/[email protected]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top