PowerShell: can't modify environment variables
Posted
by IttayD
on Super User
See other posts from Super User
or by IttayD
Published on 2010-01-17T09:46:25Z
Indexed on
2010/03/16
19:31 UTC
Read the original article
Hit count: 1465
powershell
|environment-variables
I have an environment variable set via "system properties -> advanced -> Environment Variables". I modified the variable's value. In cmd, I see the new value. In PowerShell, the value is still the old value. Trying to set it with [Environment]::SetEnvironmentVariable doesn't have any effect.
© Super User or respective owner