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] Less free space each time the cleanup script has been run #12

Closed Glitchi85 closed 1 year ago

Glitchi85 commented 1 year ago

Describe the bug When running the script several times on a machines it keeps getting less and less free space. Where does the space go.

Normally the script should be run once, thats where I found that I had less free space then before running the script.

To Reproduce Steps to reproduce the behavior:

  1. Install a blank windows 10 21H2
  2. Run the script several times and watch free space going down everytime

Expected behavior The free space should be consistant

Desktop (please complete the following information):

Glitchi85 commented 1 year ago

PS C:> .\cleanup.ps1 DriveLetter Size Remaining Reclaimed


      C 78,90 GB 57,01 GB  529,36 MB

PS C:> .\cleanup.ps1

DriveLetter Size Remaining Reclaimed


      C 78,90 GB 56,49 GB  526,20 MB

PS C:> .\cleanup.ps1

DriveLetter Size Remaining Reclaimed


      C 78,90 GB 55,93 GB  466,39 MB

PS C:> .\cleanup.ps1

DriveLetter Size Remaining Reclaimed


      C 78,90 GB 55,47 GB  522,25 MB
Ioan-Popovici commented 1 year ago

Which script is this?

Glitchi85 commented 1 year ago

https://github.com/MEM-Zone/MEM.Zone/tree/master/Scripts/PowerShell/Start-WindowsCleanup

Ioan-Popovici commented 1 year ago

Addressed, closing