Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set user environment variables in Windows Server 2008 R2 as a normal user?

People also ask

How do I set environment variables without admin rights?

Control Panel -> User Accounts -> User Accounts -> Change my environment variables (left side). This will open the user variables without admin access allowing the user's variables to be edited.

Are environment variables specific to user?

System environment variables are globally accessed by all users. User environment variables are specific only to the currently logged-in user.


You can also use this direct command line to open the Advanced System Properties:

sysdm.cpl

Then go to the Advanced Tab -> Environment Variables


OK I found it. Arg, an exercise in frustration. They left the old window menu traversal path for changing environment variables in there, but limited access to administrators only. As a normal user, if you want to change it, you need to go through a different set of options to arrive at the same frigging window.

Control Panel -> User Accounts -> User Accounts -> Change my environment variables.


Step by step instructions:

  • Go to Control Panel \System and Security\System
  • Click on Change Settings
  • Go to “Advance” tab
  • Click on Environment Variables

Under "Start" enter "environment" in the search field. That will list the option to change the system variables directly in the start menu.


This can be done from the command line using the SETX command. For example to 'move' your temporary files to another disk:

SETX TEMP d:\tmp

In command line prompt:

set __COMPAT_LAYER=RUNASINVOKER
SystemPropertiesAdvanced.exe

Now you can set user environment variables.