IT:AD:Environment Variables:HowTo:Set

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/.

By dialog

  1. Start/Run:sysdm.cpl
  2. From the Start button, Right-click Computer, Select Properties, or
  3. On the Advanced Tab, click Environment, 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

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/.

If you're trying to set values for Services, see Set for Services

  • /home/skysigal/public_html/data/pages/it/ad/environment_variables/howto/set.txt
  • Last modified: 2023/11/04 22:57
  • by 127.0.0.1