--
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
-------------------------------------------------------------------------------------------
"Jason Ryon" wrote:
| 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
> 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/groups?selm=erMVprvCFHA.2572%40tk2msftngp13.phx.gbl
--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/scriptcenter/default.mspx