![]() If you attempt do that from a regular user account, then trying to access “Advanced system settings” will trigger an UAC prompt asking you for administrator password. Going through "System" and then “Advanced system settings” -> “Environment Variables” will only work for accounts from Administrators group, because only such accounts have access to “Advanced system settings”. However, if you want to edit both system-wide and user-specific environment variables then most (if not all) of these answers are inapplicable in general case. If by "system environment variables" you refer specifically to system-wide environment variables, then other answers have already covered this. Now in the new window that comes up, select Environment Variables. In the new Control Panel window that opens, click Advanced system settings on the left. Then on the left side click About and select System info at the bottom. Old method (no longer available in newer Windows 10 updates, use PowerShell or see other answers) There are different ways to work with environment variables and certain quirks with them in PowerShell so consult the link for details. To set a variable: ::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. ![]() To get the value of a specific variable: $Env:PATH, where PATH is the name of the variable. You can list all environment variables with: Get-ChildItem Env. I was not admin and could use PowerShell. Update: After seeing lots of comments about setting environment variables without admin in Windows 10, I think I have found a way. ![]()
0 Comments
Leave a Reply. |