![]() ![]() |
Oct 30 2009, 11:57 AM
Post
#1
|
|
|
Member ![]() ![]() Group: Members Posts: 27 Joined: 11-November 05 Member No.: 3,267 |
Is it possible to run CCleaner just before shutdown (=not at startup) ?
Maybe this is possible through using "Group Policy" editor: Start->Run->"gpedit.msc"->User Configuration->Windows Settings->Scripts->Logoff Did anyone tried this out? What parameters do I have to pass to CCleaner at the command line to run it silently (without prompts) ? Thomas |
|
|
|
Oct 30 2009, 02:52 PM
Post
#2
|
|
|
Advanced Member ![]() ![]() ![]() Group: Members Posts: 201 Joined: 31-August 09 From: UK Member No.: 31,469 |
Hi thoste
e.g. "C:\Program Files\CCleaner\CCleaner.exe" /AUTO See here for more information on ccleaner command-line usage. Yes you should be able to use GP to do this. |
|
|
|
Oct 30 2009, 11:02 PM
Post
#3
|
|
![]() Just Another Volunteer ![]() Group: Moderators Posts: 4,832 Joined: 1-December 06 From: England: NE Coast Member No.: 8,751 |
For the Auto-Shutdown feature, you'll find detailed instructions here on how to set it up.
That is of course only if you need them. http://forum.piriform.com/index.php?showtopic=16551 -------------------- |
|
|
|
Nov 3 2009, 03:16 PM
Post
#4
|
|
|
Member ![]() ![]() Group: Members Posts: 27 Joined: 11-November 05 Member No.: 3,267 |
Yes you should be able to use GP to do this. That would be a nice option for the next release of CCleaner Instead of letting the user fiddle around in some nested, hidden Group Policy editors or Registry branches CCleaner should offer a simple checkbox which let it run at shutdown time. Internally CCleaner could imitate the manual GroupPolicy entry. Is this feasible in the next release? Peter |
|
|
|
Nov 3 2009, 03:24 PM
Post
#5
|
|
|
Advanced Member ![]() ![]() ![]() Group: Members Posts: 450 Joined: 20-January 08 From: Cambridge, UK Member No.: 18,380 |
|
|
|
|
Nov 3 2009, 03:35 PM
Post
#6
|
|
|
Advanced Member ![]() ![]() ![]() Group: Members Posts: 201 Joined: 31-August 09 From: UK Member No.: 31,469 |
Instead of letting the user fiddle around in some nested, hidden Group Policy editors or Registry branches CCleaner should offer a simple checkbox which let it run at shutdown time. It already offers shutdown after a fashion ... as in "run then shutdown". I.e. it triggers a shutdown on completion rather than responds to shutdown events. Don't forget that ccleaner requires a user context, so it has to be done before logoff (as per your original post). It's no use having it in the shutdown script because the context has gone. Also, not all OS versions (e.g. XP Home) support GP and I don't think (though I've not tried) it's as straightforward as just manipulating the reg keys in those cases. |
|
|
|
Nov 3 2009, 09:50 PM
Post
#7
|
|
![]() Power Member ![]() ![]() ![]() ![]() Group: Members Posts: 551 Joined: 28-August 07 From: Mesa, AZ Member No.: 15,598 |
GP shutdown scripts are stored in the registry under: HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Group Policy\Scripts\Shutdown
In theory CC could add the registry key with its path and switch. |
|
|
|
Nov 3 2009, 10:15 PM
Post
#8
|
|
|
Advanced Member ![]() ![]() ![]() Group: Members Posts: 201 Joined: 31-August 09 From: UK Member No.: 31,469 |
GP shutdown scripts are stored in the registry under: HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Group Policy\Scripts\Shutdown They may well be, but as I said I'm not sure it's that simple. If the OS version isn't supporting GP, is the OS going to pick the key up? I could always try it I suppose |
|
|
|
Nov 4 2009, 12:40 AM
Post
#9
|
|
![]() Power Member ![]() ![]() ![]() ![]() Group: Members Posts: 551 Joined: 28-August 07 From: Mesa, AZ Member No.: 15,598 |
The Group Policy Editor is just a UI. You should have a service named: Group Policy Client
Its avail in XP, Vista and 7. Depending on the OS edition you may or may not have gpedit.msc I cant speak for 2k and NT as I never used either of those enough to remember. |
|
|
|
Nov 4 2009, 01:13 AM
Post
#10
|
|
|
Advanced Member ![]() ![]() ![]() Group: Members Posts: 201 Joined: 31-August 09 From: UK Member No.: 31,469 |
The Group Policy Editor is just a UI. You should have a service named: Group Policy Client Its avail in XP, Vista and 7. Depending on the OS edition you may or may not have gpedit.msc I cant speak for 2k and NT as I never used either of those enough to remember. Sure, the console is a UI, but there are other components and directory structures involved. There are plenty of conflicting articles about whether GP will run successfully on XP Home, for example. I've tried installing the 'recommended' components to 'convert' an XP Home machine and have only achieved limited GP functionality. It may be that those particular registry entries (shutdown/logoff) would function ... but for GP as a whole I still believe it's more complex than just adding appropriate registry keys. Out of the box ... I suspect NT would have had GP, W2K does, XP Pro does, XP Home doesn't. |
|
|
|
Nov 4 2009, 05:39 AM
Post
#11
|
|
![]() Power Member ![]() ![]() ![]() ![]() Group: Members Posts: 551 Joined: 28-August 07 From: Mesa, AZ Member No.: 15,598 |
I was addressing the point that CC can write to the registry key and execute at shutdown. I strayed from the point some what.
|
|
|
|
Nov 4 2009, 09:37 AM
Post
#12
|
|
|
Advanced Member ![]() ![]() ![]() Group: Members Posts: 201 Joined: 31-August 09 From: UK Member No.: 31,469 |
I was addressing the point that CC can write to the registry key and execute at shutdown ... I realise that; but that's exactly what I was querying for reasons stated above. I am fairly sure that certain GP features won't work on an XP Home machine, but I think I'm coming round to your way of thinking that for (e.g.) logoff scripts it will work. Unfortunately I don't have access to my XP Pro machine at the moment so I can't see the format of the registry entries to try it out on this XP Home machine. |
|
|
|
Nov 4 2009, 10:06 AM
Post
#13
|
|
![]() Power Member ![]() ![]() ![]() ![]() Group: Members Posts: 551 Joined: 28-August 07 From: Mesa, AZ Member No.: 15,598 |
When you do have some free time check out this page. Just found it in a search. Theres more info there than I previously knew about.
http://www.j79zlr.com/gphome.php Gives me a few good ideas |
|
|
|
Nov 4 2009, 10:18 AM
Post
#14
|
|
|
Advanced Member ![]() ![]() ![]() Group: Members Posts: 201 Joined: 31-August 09 From: UK Member No.: 31,469 |
When you do have some free time check out this page. Just found it in a search. Theres more info there than I previously knew about. http://www.j79zlr.com/gphome.php Thanks ... I found that one last night too ... couldn't find any mention of logoff / shutdown scripts though!!! |
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 21st November 2009 - 12:07 PM |