In older versions of Windows, it was just open the Control Panel, select the System applet, select the Advanced tab, and then hit the Environment variables button. As a nor
In command line prompt:
set __COMPAT_LAYER=RUNASINVOKER SystemPropertiesAdvanced.exe
Now you can set user environment variables.