Reputation: 141792
We set the Windows System Path variable via System > Advanced System Settings > Environmental Variables > Path > Edit.
We set the PowerShell ones via Env:Path += ";Some\New\Path"
What, if any, is the difference between these two?
Upvotes: 0
Views: 789
Reputation: 47872
When you set the variable in powershell, it's set in that process (and its children) only. This is equivalent to using SET
from the cmd prompt or a batch file.
In the dialog, you are setting the variables for the user (or for the system), which affects every process spawned under those contexts. This is analogous to using SETX
from the cmd prompt or a batch file.
Upvotes: 5