Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Automate cleanmgr.exe

219 views
Skip to first unread message

Andy

unread,
May 15, 2010, 6:12:08 PM5/15/10
to
I am using this batch command along with this .reg file but it isn't
working automatically.
It still prompts for the drive to clean up.

Is a way to get rid of the prompt?

Thanks.

Cleanmgr /sagerun:64


Windows Registry Editor Version 5.00


; This registry file contains the entries to turn ON all cleanmgr
options

; Remove any items you don't want

; note the flags below are set to 64 - for use with the command
'CLEANMGR /sagerun:64?'

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer
\VolumeCaches]

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer
\VolumeCaches\Active Setup Temp Folders]

"StateFlags0064"=dword:00000002


[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer
\VolumeCaches\Content Indexer Cleaner]

"StateFlags0064"=dword:00000002

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer
\VolumeCaches\Downloaded Program Files]

"StateFlags0064"=dword:00000002

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer
\VolumeCaches\Internet Cache Files]

"StateFlags0064"=dword:00000002

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer
\VolumeCaches\Memory Dump Files]

"StateFlags0064"=dword:00000002

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer
\VolumeCaches\Microsoft_Event_Reporting_2.0_Temp_Files]

"StateFlags0064"=dword:00000002

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer
\VolumeCaches\Office Setup Files]

"StateFlags0064"=dword:00000002

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer
\VolumeCaches\Offline Pages Files]

"Priority"=dword:00000064

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer
\VolumeCaches\Old ChkDsk Files]

"StateFlags0064"=dword:00000002

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer
\VolumeCaches\Recycle Bin]

"StateFlags0064"=dword:00000002

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer
\VolumeCaches\Remote Desktop Cache Files]

"StateFlags0064"=dword:00000002

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer
\VolumeCaches\Setup Log Files]

"StateFlags0064"=dword:00000002

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer
\VolumeCaches\Temporary Files]

"StateFlags0064"=dword:00000002

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer
\VolumeCaches\WebClient and WebPublisher Cache]

"StateFlags0064"=dword:00000002

Andy

unread,
May 15, 2010, 6:12:12 PM5/15/10
to

ten.n...@virgin.net

unread,
May 16, 2010, 8:35:53 AM5/16/10
to
On Sat, 15 May 2010 15:12:08 -0700 (PDT), Andy wrote:

> I am using this batch command along with this .reg file but it isn't
> working automatically.
> It still prompts for the drive to clean up.
>
> Is a way to get rid of the prompt?
>
> Thanks.
>
> Cleanmgr /sagerun:64
>

<snip>

I would presume that when you ran CLEANMGR /SAGESET:64 in order to produce
the settings for your SAGERUN automation that you should have used the /D
X: switch, (where X: is the drive you wish to clean).

Andy

unread,
May 16, 2010, 11:11:19 PM5/16/10
to

I had not done that.

Thanks.

0 new messages