gregorybleiker / windows_path_cleanup

Removes duplicates from system and user path

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PATH environment cleaner for windows

This script removes paths that are duplicated inside the System PATH and also removes duplicates that exist in the System and the User path at the same time. Use with caution, it will rewrite your paths.

The script does:

  • strips off all backslashes in the path
  • removes duplicate entries in user and system path
  • removes entries where the path does not exist
  • remove entries in user path if they exist in system path

About

Removes duplicates from system and user path


Languages

Language:PowerShell 100.0%