How do I set system environment variables in Windows 10?
--
Music by Eric Matyas
https://www.soundimage.org
Track title: Puzzle Game 5 Looping
--
Chapters
00:00 Question
00:36 Accepted answer (Score 171)
02:36 Answer 2 (Score 127)
03:07 Answer 3 (Score 108)
03:27 Answer 4 (Score 33)
07:10 Thank you
--
Full question
https://superuser.com/questions/949560/h...
Accepted answer links:
[PowerShell method]: https://technet.microsoft.com/en-us/libr...?
[image]: https://i.stack.imgur.com/VS4fb.png
[image]: https://i.stack.imgur.com/Y2sFF.png
[image]: https://i.stack.imgur.com/bd5eF.png
[image]: https://i.stack.imgur.com/ZeExG.png
Answer 3 links:
[image]: https://i.stack.imgur.com/HQPYL.png
Answer 4 links:
[image]: https://i.stack.imgur.com/0PuBj.png
https://technet.microsoft.com/en-us/libr...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#windows #windows10
#avk47
ACCEPTED ANSWER
Score 178
Update: After seeing lots of comments about setting environment variables without admin in Windows 10, I think I have found a way. I was not admin and could use PowerShell.
PowerShell method
You can list all environment variables with: Get-ChildItem Env:
.
To get the value of a specific variable: $Env:PATH
, where PATH
is the name of the variable.
To set a variable: [Environment]::SetEnvironmentVariable("PATH", "C:\TestPath", "User")
, the first parameter is the name of the variable, the second is the value, the third is the level of.
There are different ways to work with environment variables and certain quirks with them in PowerShell so consult the link for details.
Old method (no longer available in newer Windows 10 updates, use PowerShell or see other answers)
Go into Settings and click on System.
Then on the left side click About and select System info at the bottom.
In the new Control Panel window that opens, click Advanced system settings on the left.
Now in the new window that comes up, select Environment Variables... at the bottom.
ANSWER 2
Score 127
Still the same as ever: It’s in the old-style control panel’s “System” thingy. You can reach it with WinBreak or by right-clicking the Start button.
From there, select “Advanced system settings” → “Environment Variables”.
Or you can do it the hard way and find some other entry point to the old-style control panel, like the Network and Sharing Center or the Desktop folder(!).
ANSWER 3
Score 110
I typed "envir" in the "Search the web and Windows" box and selected "Edit environment variables for your account" under the "Best Match"