Jump to content

Script to delete profile at log off?


Recommended Posts

  • 3 weeks later...
Posted
I, too, want (need) a logoff script that will selective delete LOCAL profiles - selective as I want to delete the students' local profile, but not my admin1, administrator, or the teacher's profile. I have read the various postings in this forum and understand, to a point, about UPHClean and Delprof, but I do not understand scripting and script writing enough to know what my logoff script would look like. Also, does UPHClean and Delprof need to be installed on the client? I have also set in the GPO to "enable" the "delete cashed copies of Roaming Profiles" but it does not have any effect in XP Pro. Any assistance would be greatly appreciated!
Posted

I, too, want (need) a logoff script that will selective delete LOCAL profiles - selective as I want to delete the students' local profile, but not my admin1, administrator, or the teacher's profile. I have read the various postings in this forum and understand, to a point, about UPHClean and Delprof, but I do not understand scripting and script writing enough to know what my logoff script would look like. Also, does UPHClean and Delprof need to be installed on the client? I have also set in the GPO to "enable" the "delete cashed copies of Roaming Profiles" but it does not have any effect in XP Pro. Any assistance would be greatly appreciated!

 

[topic merged - please do not start needless topics when they exist thanks - tarquel]

Posted

I would also be interesting in such a thing, especially if it takes account that the students dont have any local access rights.........

 

qq on this: why doesnt the GPO setting (delete local profs) actually work?

 

Midget

Posted

The GPO setting is only for cached copies of ROAMING profiles - therefore wont work on locally stored profiles..

 

Delprof doesn't need to be copied to the client - I run it from a batch file stored in the NETLOGON share using GPO logoff script

Posted

I noticed yesterday that it has stopped working on mine as well - and as a result, causes problems...

 

[such as clearing a students roaming profile on the server wont have the desired effect if they log on to a machine that still has a copy of their profile]

 

...so I'm going to look at it - when i get a chance.

 

As my machines reboot each night, that would be an opportune time for a computer shutdown script to run that clears the profiles.

 

Anyone got one to hand that saves us having to create one?

 

Cheers

Nath

Posted

Have a look at remote profile cleaner by No Nonsense Software Inc.

 

http://www.no-nonsens.nl/

 

You can setup 'templates' telling it exactly which profiles you want to clean on what machines. You can test your settings before you try them too. Plus everything can be done via command line options.

Posted
The GPO setting is only for cached copies of ROAMING profiles - therefore wont work on locally stored profiles..

 

Delprof doesn't need to be copied to the client - I run it from a batch file stored in the NETLOGON share using GPO logoff script

 

Why not just put the batch file and DELPROF in the GPO as well? That way it's cached on the PCs and should run if disconnected.

Posted

Pay Geoff....Pay? hehe

 

[PS i'm going to merge this with the exact same topic as the other one thats at the top of this board *rolls eyes*]

 

Nath

Posted

It's donationware. You just have to redownload it every 2 months:

 

Remote Profile Cleaner is available as donationware only. The complete program is available as a Windows installer and can be downloaded from the links on the bottom of this page. Please notice that a serial number is not required to install or use Remote Profile Cleaner for non-commercial usage. Unregisterd versions will expire two months after their release date. If you choose to register your copy of Remote Profile Cleaner, a serial number is send to you as soon as we receive your minimum donation of € 45.00
Posted

Craig

"Delprof doesn't need to be copied to the client - I run it from a batch file stored in the NETLOGON share using GPO logoff script"

 

tried that & it doesn't work for me - batch file doesn't support UNC path & also I think user has insufficient access to run delprof - any ideas?

Posted
I have placeed a bat file to run Delprof in NETLOGON and using GPO logoff script. I believe that it is deleting my test profile, but the logoff script runs before the "network connections" screen and then "saving your settings" screen appears, which I believe, is placing the profile right back in the "Documents and Settings" folder. How do I set the logoff script to run at the very end or how do I switch off the "save your settings" process?
Posted
The only problem I can see now is slower logon times if the computer has to create a local user profile everytime someone logs on.
  • 1 year later...
Posted (edited)
I do the lot. GPO setting + UPHCLEAN + DELPROF /Q /I /R.

The GPO setting doesnt appear to work for me?

 

Does anyone have a guide on how to use delprof & uphclean?

Or do i literally just wack delprof into netlogin/a share, set it as a log off script with the /q /i /r variables?

Then install the UPHClean on each workstation?

Edited by boomam

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...