Jump to content
CCleaner Community Forums
99bobster99

XP Logout Scripts

Recommended Posts

Hi,

 

I've added a batch file, as a logout script, to each user on our computer (4 users). This batch file contains the "c:\program files\ccleaner\ccleaner.exe /AUTO" entry. This script shows up under everyones "logout scripts" configuration, yet it's not cleaning properly. I know this because I run a program called "SuperCleaner", after running ccleaner, and it finds history files from the other users which should have been deleted had the script file done it's job. Is there something special that needs to be done to allow the global cleaning of everyones "crap" files using ccleaner ??

 

Thanks.

Share this post


Link to post
Share on other sites

currently there is no global cleaning feature.

can you try going to each account, cleaning it manually, then try running supercleaner and see if it still finds anything?

thanks :)

Share this post


Link to post
Share on other sites

currently there is no global cleaning feature.

can you try going to each account, cleaning it manually, then try running supercleaner and see if it still finds anything?

thanks :)

 

 

I tried what you mentioned, Supercleaner only ran for a split second. This tells me that everything cleaned up nicely with CCleaner. This would be an amazing feature to add to ccleaner, maybe the next rev ??

 

Thanks.

Share this post


Link to post
Share on other sites

my guess would be that its not cleaning properly.

where did you add this script to and please copy/paste the exact script so it can be overlooked.

Share this post


Link to post
Share on other sites

my guess would be that its not cleaning properly.

where did you add this script to and please copy/paste the exact script so it can be overlooked.

 

 

I added the following script to the Group Policies, under Windows Shutdown scripts.

 

 

c:;Remove this below when installing programs, since this may delete needed reboot filescd c:\progra~1\ccleanerccleaner /AUTOcd\c:\progra~1\eraser\eraserl -recycled -method DoD_E -queue -silentc:\progra~1\eraser\eraserl -folder "c:\docume~1\Administrator\cookies" -subfolders -keepfolder -method DoD_E -queue -silentc:\progra~1\eraser\eraserl -folder "c:\docume~1\Administrator\locals~1\temp" -subfolders -keepfolder -method DoD_E -queue -silentc:\progra~1\eraser\eraserl -folder "c:\docume~1\Administrator\locals~1\Tempor~1" -subfolders -keepfolder -method DoD_E -queue -silentc:\progra~1\eraser\eraserl -folder "c:\docume~1\Administrator\locals~1\History" -subfolders -keepfolder -method DoD_E -queue -silentc:\progra~1\eraser\eraserl -folder "c:\docume~1\Administrator\recent" -subfolders -keepfolder -method DoD_E -queue -silentc:\progra~1\eraser\eraserl -folder "c:\docume~1\Administrator\userdata" -subfolders -keepfolder -method DoD_E -queue -silentc:\progra~1\eraser\eraserl -folder "c:\docume~1\Administrator\micros~1\office\recent" -subfolders -keepfolder -method DoD_E -queue -silentc:\progra~1\eraser\eraserl -folder "c:\docume~1\All Users\cookies" -subfolders -keepfolder -method DoD_E -queue -silentc:\progra~1\eraser\eraserl -folder "c:\docume~1\All Users\locals~1\temp" -subfolders -keepfolder -method DoD_E -queue -silentc:\progra~1\eraser\eraserl -folder "c:\docume~1\All Users\locals~1\Tempor~1" -subfolders -keepfolder -method DoD_E -queue -silentc:\progra~1\eraser\eraserl -folder "c:\docume~1\All Users\locals~1\History" -subfolders -keepfolder -method DoD_E -queue -silentc:\progra~1\eraser\eraserl -folder "c:\docume~1\All Users\recent" -subfolders -keepfolder -method DoD_E -queue -silentc:\progra~1\eraser\eraserl -folder "c:\docume~1\All Users\userdata" -subfolders -keepfolder -method DoD_E -queue -silentc:\progra~1\eraser\eraserl -folder "c:\docume~1\All Users\micros~1\office\recent" -subfolders -keepfolder -method DoD_E -queue -silentc:\progra~1\eraser\eraserl -folder "c:\docume~1\Default User\cookies" -subfolders -keepfolder -method DoD_E -queue -silentc:\progra~1\eraser\eraserl -folder "c:\docume~1\Default User\locals~1\temp" -subfolders -keepfolder -method DoD_E -queue -silentc:\progra~1\eraser\eraserl -folder "c:\docume~1\Default User\locals~1\Tempor~1" -subfolders -keepfolder -method DoD_E -queue -silentc:\progra~1\eraser\eraserl -folder "c:\docume~1\Default User\locals~1\History" -subfolders -keepfolder -method DoD_E -queue -silentc:\progra~1\eraser\eraserl -folder "c:\docume~1\Default User\recent" -subfolders -keepfolder -method DoD_E -queue -silentc:\progra~1\eraser\eraserl -folder "c:\docume~1\Default User\userdata" -subfolders -keepfolder -method DoD_E -queue -silentc:\progra~1\eraser\eraserl -folder "c:\docume~1\Default User\micros~1\office\recent" -subfolders -keepfolder -method DoD_E -queue -silentc:\progra~1\eraser\eraserl -folder "c:\docume~1\John\cookies" -subfolders -keepfolder -method DoD_E -queue -silentc:\progra~1\eraser\eraserl -folder "c:\docume~1\John\locals~1\temp" -subfolders -keepfolder -method DoD_E -queue -silentc:\progra~1\eraser\eraserl -folder "c:\docume~1\John\locals~1\Tempor~1" -subfolders -keepfolder -method DoD_E -queue -silentc:\progra~1\eraser\eraserl -folder "c:\docume~1\John\locals~1\History" -subfolders -keepfolder -method DoD_E -queue -silentc:\progra~1\eraser\eraserl -folder "c:\docume~1\John\recent" -subfolders -keepfolder -method DoD_E -queue -silentc:\progra~1\eraser\eraserl -folder "c:\docume~1\John\userdata" -subfolders -keepfolder -method DoD_E -queue -silentc:\progra~1\eraser\eraserl -folder "c:\docume~1\John\micros~1\office\recent" -subfolders -keepfolder -method DoD_E -queue -silentc:\progra~1\eraser\eraserl -folder "c:\docume~1\Julie\cookies" -subfolders -keepfolder -method DoD_E -queue -silentc:\progra~1\eraser\eraserl -folder "c:\docume~1\Julie\locals~1\temp" -subfolders -keepfolder -method DoD_E -queue -silentc:\progra~1\eraser\eraserl -folder "c:\docume~1\Julie\locals~1\Tempor~1" -subfolders -keepfolder -method DoD_E -queue -silentc:\progra~1\eraser\eraserl -folder "c:\docume~1\Julie\locals~1\History" -subfolders -keepfolder -method DoD_E -queue -silentc:\progra~1\eraser\eraserl -folder "c:\docume~1\Julie\recent" -subfolders -keepfolder -method DoD_E -queue -silentc:\progra~1\eraser\eraserl -folder "c:\docume~1\Julie\userdata" -subfolders -keepfolder -method DoD_E -queue -silentc:\progra~1\eraser\eraserl -folder "c:\docume~1\Julie\micros~1\office\recent" -subfolders -keepfolder -method DoD_E -queue -silentc:\progra~1\eraser\eraserl -folder "c:\docume~1\Mark\cookies" -subfolders -keepfolder -method DoD_E -queue -silentc:\progra~1\eraser\eraserl -folder "c:\docume~1\Mark\locals~1\temp" -subfolders -keepfolder -method DoD_E -queue -silentc:\progra~1\eraser\eraserl -folder "c:\docume~1\Mark\locals~1\Tempor~1" -subfolders -keepfolder -method DoD_E -queue -silentc:\progra~1\eraser\eraserl -folder "c:\docume~1\Mark\locals~1\History" -subfolders -keepfolder -method DoD_E -queue -silentc:\progra~1\eraser\eraserl -folder "c:\docume~1\Mark\recent" -subfolders -keepfolder -method DoD_E -queue -silentc:\progra~1\eraser\eraserl -folder "c:\docume~1\Mark\userdata" -subfolders -keepfolder -method DoD_E -queue -silentc:\progra~1\eraser\eraserl -folder "c:\docume~1\Mark\micros~1\office\recent" -subfolders -keepfolder -method DoD_E -queue -silentc:\progra~1\eraser\eraserl -folder "c:\windows\temp" -subfolders -keepfolder -method DoD_E -queue -silentRegEdit /s c:\Eraser1.regcd\

 

 

Here is the contents of the reg file that is called from the script.

 

 

REGEDIT4'cleans IE URL drop down list typed urls and recent docs, etc. [-HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\TypedURLs] [-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\StreamMRU][-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Map Network Drive MRU][-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\ComputerDescriptions][-HKEY_CURRENT_USER\Software\Microsoft\Search Assistant\ACMru] [-HKEY_USERS\S-1-5-21-54938807-1984772358-980507067-74305\Software\Microsoft\Internet Explorer\TypedURLs][-HKEY_USERS\S-1-5-21-54938807-1984772358-980507067-74305\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU]'Delete RunMRU's[-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU][HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU]'Delete OpenSaveMRU's[-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32][HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32]'Delete RecentDocs[-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs][HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs]'Delete OpenWithList[-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts][HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts]'Delete UserAssist Info[-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\UserAssist][HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\UserAssist]'Delete MediaPlay Recent List[-HKEY_CURRENT_USER\Software\Microsoft\MediaPlayer\Player\RecentFileList][HKEY_CURRENT_USER\Software\Microsoft\MediaPlayer\Player\RecentFileList]'Misc Crap[-HKEY_CLASSES_ROOT\aom]

 

Share this post


Link to post
Share on other sites

looks pretty nice but may be a little too complex for me :)

what you could do is make a shortcut to Ccleaner with the /AUTO parameter and place it in start>programs>startup which is what i like to do.

Share this post


Link to post
Share on other sites

looks pretty nice but may be a little too complex for me :)

what you could do is make a shortcut to Ccleaner with the /AUTO parameter and place it in start>programs>startup which is what i like to do.

 

 

 

I want the cleaner to run when users exit the system, since I don't want to have to wait for all their junk files to be cleaned when I login ?? It sounds like it should be a no brainer to allow this to work for every user, maybe a future rev will allow this functionality.

 

Thanks for your help.

Share this post


Link to post
Share on other sites

i just thought, what if you made a batch on the desktop, that ran ccleaner then when that finished, logged off?

that wouldnt be too hard..

Share this post


Link to post
Share on other sites

i just thought, what if you made a batch on the desktop, that ran ccleaner then when that finished, logged off?

that wouldnt be too hard..

 

 

 

I hear ya, it sounds easy to you and me but trying getting your wife to hit that little icon when she has 2 children screaming in her ear!! I was looking for a way to do this fully automatic, whenever any of the other users logoff all of their "junk" files are cleaned up.

 

Whoever reads this and can make it happen, please add this functionality for the sake of man-kind, or for at least fathers, like myself's sanity!! :blink:

Share this post


Link to post
Share on other sites

well, you could just remove the ones in the start menu then make shortcuts.

it would then do what it did before.

im going to test this out later and ill let you know if it works. :D

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...