CleanmgrPlus icon indicating copy to clipboard operation
CleanmgrPlus copied to clipboard

Please fix "Windows Shadow Copies" script and Windows.old script

Open aquila-XP opened this issue 4 years ago • 2 comments

Hi Belim ,

When I run Cleanmgr+, I see many windows popping up for short period of time. But still two of them requires to interact with them. Please fix these 2 scripts:

  • Windows Shadow Copies. In my machine I disabled this service and because of this I get a window in CMD generated by the command "vssadmin - Volume Shadow Copy Service administrative command-line tool" with this message No items found that satisfy the query. The script should first check if the service is activated and only then could run the command vssadmin list shadows.
  • Windows.old script that performs this command-line cacls %SystemDrive%\Windows.old\*.* /C /T /grant administrators:F is popping up the following message Are you sure (Y/N)?. This script should have a parameter or switch to not display this message. I guess File1=Detect|%SystemDrive%\windows.old don't work properly because I do not have the folder C:\Windows.old on my system.

~~Also, after I updated to a new version I discovered that "Windows Downloads" is enabled by default despite being disabled previously.~~

aquila-XP avatar Oct 17 '20 19:10 aquila-XP

Hi,

  1. Please replace the current script with the following code here (x64-bit ONLY)

  2. Just add a /Q parameter for suppressing the confirmation prompt. This File1=Detect|%SystemDrive%\windows.old part is used to check for existence of Windows.old directory. I haven't tested this optional script since Win10/1809 and I am not sure if it works at all.

Regarding the Windows Downloads folder, I can say that I did not touch it in the last update :grimacing:

Belim avatar Oct 19 '20 20:10 Belim

I have a problem with Windows Shadow Copies.csc on Windows 11, maybe have a look at #27

ladiko avatar Oct 14 '21 15:10 ladiko