MEM-Zone / MEM.Zone

Our ♡ collection of PowerShell scripts and Endpoint Management related stuff 🐵
https://MEM.Zone/GIT
GNU General Public License v3.0
97 stars 10 forks source link

[BUG] Disk Cleanup stays open in the background #17

Closed JonathanPitre closed 1 year ago

JonathanPitre commented 1 year ago

Describe the bug Even though disk cleanup launch and run properly, it stays open forever in the background and I have to manually kill the process every single time.

Maybe a kill command could be launched after a certain wait time?

Expected behavior Disk Cleanup should close automatically when done and the script should continue.

Desktop (please complete the following information):

Ioan-Popovici commented 1 year ago

I will try to run cleanmgr interactively to see what's happening. You could do the same selecting everything from the GUI.

At which step does it freeze snd what parameters are you using?

JonathanPitre commented 1 year ago

I did, it seems to get stuck on Windows Defender cleanup. If I click on the process window, it ends the process. Weird one!

Ioan-Popovici commented 1 year ago

I can't reproduce it in Windows 11. Please re-open if you have more info CleanShot 2023-07-13 at 13 01 44