Showing posts with label environment variable. Show all posts
Showing posts with label environment variable. Show all posts

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! ;)