How do I set the PATH in PowerShell?
function Add-Path($Path) {
$Path = [Environment]::GetEnvironmentVariable("PATH", "Machine") + [IO.Path]::PathSeparator + $Path
[Environment]::SetEnvironmentVariable( "Path", $Path, "Machine" )
}PreviousHow do I determine the location of the current PowerShell script?NextHow do I determine the current version of PowerShell?
Last updated
Was this helpful?