# Setting Advanced Server Environment Variablesv10

The graphical installer provides a script that simplifies the task of setting environment variables for Windows users. The script sets the environment variables for your current shell session; when your shell session ends, the environment variables are destroyed. You may wish to invoke `pgplus_env` or `pg_env` from your system-wide shell startup script, so that environment variables are automatically defined for each shell session.

The `pgplus_env` script is created during the Advanced Server installation process and reflects the choices made during installation. To invoke the script, open a command line and enter:

As the `pgplus_env.bat` script executes, it sets the following environment variables:

If you have used an installer created by EnterpriseDB to install PostgreSQL, the `pg_env` script performs the same function. To invoke the `pg_env` script, open a command line, and enter:

As the `pg_env.bat` script executes, it sets the following environment variables: