An open API service indexing awesome lists of open source software.

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

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
```