Thursday, December 8, 2016

PS Scripts–Add to Path Environment Variable

Here’s an easy and quick way to add a string to your Path environemnt variable:

[Environment]::SetEnvironmentVariable("Path", $env:Path + ";C:\SomethingYouLike", [EnvironmentVariableTarget]::Machine)

And…you’re done! ;)

No comments:

Post a Comment