[gptalk] Re: Delete Local profile upon log off - ?

  • From: <Booker.Washington@xxxxxxxxxxxxxx>
  • To: <gptalk@xxxxxxxxxxxxx>
  • Date: Fri, 10 Aug 2007 16:16:03 -0400

How do I get it to run as NT Authority\System.  If I set up the task remotely, 
it asks me for a password for whatever account I choose



-----Original Message-----
From: gptalk-bounce@xxxxxxxxxxxxx [mailto:gptalk-bounce@xxxxxxxxxxxxx] On 
Behalf Of Nelson, Jamie R Contr 72 CS/SCBAF
Sent: Wednesday, August 08, 2007 1:58 PM
To: gptalk@xxxxxxxxxxxxx
Subject: [gptalk] Re: Delete Local profile upon log off - ?

Use the delprof.exe utility from Microsoft. What's nice about it is you
can pass it a parameter so that it only deletes profiles that haven't
been used in the last X number of days. This is nice because users who
access that system on a regular basis don't constantly have to have
their profile recreated at login. You can even run it against remote
systems if you want to.

You would have to run it as a shutdown script though because it can't
delete a profile unless it has been unloaded from the registry (running
at logoff would not work). In addition, you have to have admin rights on
the local system for it to work. You might want to consider running it
as a scheduled task (as NT AUTHORITY\SYSTEM) once a week or so instead,
reason being that its effectiveness as a shutdown script would require
that the machine gets rebooted or shutdown on a regular basis.

Here are some usage examples:

Delete profiles that haven't been used in one week or more:

delprof.exe /Q /I /D:7

Delete ALL profiles every time the application runs:

Delprof.exe /Q /I /D:0

You can download it here:

http://www.microsoft.com/downloads/details.aspx?familyid=901a9b95-6063-4
462-8150-360394e98e1e&displaylang=en

Hope this helps.

Regards,
Jamie Nelson

-----Original Message-----
From: gptalk-bounce@xxxxxxxxxxxxx [mailto:gptalk-bounce@xxxxxxxxxxxxx]
On Behalf Of Booker.Washington@xxxxxxxxxxxxxx
Sent: Wednesday, August 08, 2007 12:19 PM
To: gptalk@xxxxxxxxxxxxx
Subject: [gptalk] Delete Local profile upon log off - ?

I know there is a way to delete cached roaming profiles from a computer,
but is there a way to delete non roaming profiles from a computer upon
log off.  I noticed with my lab machines that over a period of time,
with all of the students logging on, the hard drive gets full.



I am not using roaming profiles.



Booker









***********************
You can unsubscribe from gptalk by sending email to 
gptalk-request@xxxxxxxxxxxxx with 'unsubscribe' in the Subject field OR by 
logging into the freelists.org Web interface. Archives for the list are 
available at //www.freelists.org/archives/gptalk/
************************
***********************
You can unsubscribe from gptalk by sending email to 
gptalk-request@xxxxxxxxxxxxx with 'unsubscribe' in the Subject field OR by 
logging into the freelists.org Web interface. Archives for the list are 
available at //www.freelists.org/archives/gptalk/
************************

Other related posts: