Excerpt |
---|
How to create environment variables and assign values to them with PowerShell. |
...
Run PowerShell as an administrator, then enter
Enter the following command:
Code Block | ||
---|---|---|
| ||
[System.Environment]::SetEnvironmentVariable("Your_Environment_Variable_Here", "your_value_here", "User") |
[System.Environment]::SetEnvironmentVariable("Your_Environment_Variable_Here", "your_value_here", "User")
...
Excerpt | |||||
---|---|---|---|---|---|
| |||||
ChatGPT 3.5 Answer
Replace If you want to create a system-wide environment variable, you may need to run PowerShell with administrative privileges. |