IT:AD:Environment Variables:HowTo:Set
Summary
Environment Variables can be set using a GUI (see IT:AD:CLI), or using IT:AD:SetX
Every time you start a new IT:AD:CLI shell, windows copies all the Machine and User Environment variables into the shell. Including the PATH/.
Process
By dialog
- Start/Run:
sysdm.cpl
- From the
Start
button, Right-clickComputer
, SelectProperties
, or - On the
Advanced
Tab, clickEnvironment
, and edit Machine or User variables. See IT:AD:Environment Variables:HowTo:Tips Regarding PATH as to why the above is not sufficient on Servers, for Service Accounts
By Code
If you want to do it from code, see: IT:AD:SetX
By Powershell
See: * IT:AD:Powershell:HowTo:Snippets:Work with Environment Variables * IT:AD:PowerShell:HowTo:Snippets:Refresh Environment Variables
Warning
Every time you start a new CommandLine/ shell, windows copies all the Machine and User Environment variables into the shell. Including the PATH/.
The are not be refreshed until you close/open anothe shell. Including PATH/.
Service Accounts
If you're trying to set values for Services, see Set for Services