https://github.com/name/disk-cleanup
Disk Cleanup Script in PowerShell
https://github.com/name/disk-cleanup
Last synced: over 1 year ago
JSON representation
Disk Cleanup Script in PowerShell
- Host: GitHub
- URL: https://github.com/name/disk-cleanup
- Owner: name
- License: mit
- Created: 2023-07-01T23:10:48.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-03T09:57:31.000Z (about 3 years ago)
- Last Synced: 2025-01-11T12:36:56.256Z (over 1 year ago)
- Language: PowerShell
- Homepage:
- Size: 2.09 MB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Disk Cleanup Script
This script is used to clean up the disk space on a Windows machine. This is compatible with Windows 10+, Windows Server 2012 R2+, and limited support for Windows Server 2008 R2.
## Usage
The script can be run in two ways:
1. **Report Mode** - This mode will run the script and output a report of useful information to help with manual cleanup.
2. **Cleanup Mode** - This mode will run the script and perform the cleanup automatically.
## How to Run
You can run the script by opening an Administrative PowerShell window and running the following command depending on the mode you want to run:
```powershell
# Requires PowerShell 3.0+
## If you receive a 'iwr : The request was aborted: Could not create SSL/TLS secure channel.' error, enter the below:
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
## Report Mode
iex (iwr 'https://raw.githubusercontent.com/name/disk-cleanup/main/disk-cleanup.ps1')
## Cleanup Mode
Invoke-WebRequest -Uri 'https://raw.githubusercontent.com/name/disk-cleanup/main/disk-cleanup.ps1' -OutFile 'disk-cleanup.ps1' ; & '.\disk-cleanup.ps1' -clean
```
## Examples
### Report Mode

### Cleanup Mode
