Powershell - changing the value of an environment variable Powershell - changing the value of an environment variable powershell powershell

Powershell - changing the value of an environment variable


To set an environment variable at the system level (and make them persistent), you need to use the .Net Framework method [Environment]::SetEnvironmentVariable()

In the current session, you can set them via $env:NAME = VALUE.

See http://technet.microsoft.com/en-us/library/ff730964.aspx