This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://api.cacher.io/raw/0fcd76d0761e565a8c4e/2ef1c75cc5abb4fa2880/start-cleanup')) | |
| Function Start-Cleanup { | |
| <# | |
| .SYNOPSIS | |
| Automate cleaning up a C:\ drive with low disk space | |
| .DESCRIPTION | |
| Cleans the C: drive's Window Temperary files, Windows SoftwareDistribution folder, | |
| the local users Temperary folder, IIS logs(if applicable) and empties the recycling bin. |