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
> 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).
I had not done that.
Thanks.