https://github.com/jeromewolff/windows-path-cleaner
PowerShell script to remove PATH variables that don't exist anymore
https://github.com/jeromewolff/windows-path-cleaner
environment-variables path powershell powershell-script powershell7
Last synced: 10 months ago
JSON representation
PowerShell script to remove PATH variables that don't exist anymore
- Host: GitHub
- URL: https://github.com/jeromewolff/windows-path-cleaner
- Owner: JeromeWolff
- Created: 2025-04-03T06:34:47.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2025-04-03T06:43:56.000Z (12 months ago)
- Last Synced: 2025-05-18T07:15:16.634Z (11 months ago)
- Topics: environment-variables, path, powershell, powershell-script, powershell7
- Language: PowerShell
- Homepage: https://www.jeromewolff.de
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Windows Path Cleaner
A PowerShell script to delete Path environment variables from Windows Systems that aren't existing anymore.
## Features
- Deletes PATH environment variables that aren't existing anymore
- Automatically creates a backup of PATH environment variables
## Prerequisites
1. **PowerShell**: PowerShell 7 or higher is recommended.
## Usage
### 1. Clone or Download the Script
Save the script as `Path-Cleaner.ps1`.
### 2. Run the Script
Execute the script in PowerShell as Administrator with the following parameters:
```powershell
.\Path-Cleaner.ps1
```