Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions tools/windows/Reset-PWSHSystemPath.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,13 @@

Removes ALL PowerShell paths from the Machine level path.
Good for running right before upgrading PowerShell.

.EXAMPLE
.\Reset-PWSHSystemPath.ps1 -PathScope Machine, User, Process

Removes all paths but the very last one when sorted in ascending order.
Processes all path scopes including current process.

.EXAMPLE
.\Reset-PWSHSystemPath.ps1 -PathScope Machine, User, Process -RemoveAllOccurencs

Expand Down