Environment variables are strings that contain information such as drive, path, or file name, etc. They control the behavior of various programs. Below is a list of some environment variables compiled. An environment variable is a dynamic “object” on a computer, containing an editable value, which may be used by one or more software programs in Windows. Environment variables help programs know what directory to install files in, where to store temporary files, and where to find user profile settings.
In Windows, there are basically, two types of environment variables .: user environment variables (set for each user) and system environment variables (set for everyone). By default, a child process inherits the environment variables of its parent process
– User Environment variables:
Furthermore, This can be modified by both the users and administrator while the
– System Environment Variables: Here only the system admin(s) can modify it.
|%CommonProgramFiles%||C:\Program Files\Common Files|
|%CommonProgramW6432%||C:\Program Files\Common Files|
|%DATE%||The current date in the format determined by Date command|
|%ERRORLEVEL%||Number defining exit status of previous command or program|
|%ProgramFiles(x86)%||C:\Program Files (x86)|
|%PROMPT%||Code for current command |
|%TIME%||Current time in format|
Note: It is vital to point out that the following User and System Environment Variable
– User Environment Variables: These variables are different for every user of a particular computer. However, The variables include any that the user sets and any variables defined by programs, such as the path to the location of the program files.
– System Environment Variables: Moreover, Administrators can change or add environment variables that apply to the system as a whole and thus to all system users.
In addition, With the command “
Get-ChildItem Env:“, you can view the list of available environment variables as shown below.
Note: Nonetheless, These variables can be modified from PowerShell on the fly and can also be modified via the registry settings. Consequently, See the link below for how this is configured via Advanced System Settings
Nevertheless, I hope you found this blog post helpful. Therefore, Please let me know in the comment session if you have any questions.