0

Edit
This is a duplicate of a question, however not the one identified. It is a duplicate of this question.

I am remotely logged into an instance of Windows Server 2012 as a regular user. I can't get administrative privileges. I have opened the environment variables control from control panel. The Path variable apparently can only be changed by the administrator. How do I modify the Path variable to include C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE?

enter image description here

pacmaninbw
  • 128
  • 5
  • 1
    The path is in two parts. You can change the `user` part of the path variable. – DavidPostill Jan 02 '19 at 19:47
  • Do not cross-post. This is not a programming question, so the SO question should be closed/deleted. – music2myear Jan 02 '19 at 19:48
  • Possible duplicate of [Windows Server 2008 R2 Environment Variables](https://superuser.com/questions/178008/windows-server-2008-r2-environment-variables). While the duplicate is with regards to Windows Server 2008 R2, the answer is still applicable to Windows Server 2012, since given the constraints only the user variable can be changed. It should only be necessary to modify the system Path variable if the application is being run as a different user while logged into another user. – Ramhound Jan 02 '19 at 19:49
  • The command prompt allows you to set Global (requiring admin rights) variables using SET, or User (not requiring admin rights) variables using the SETX command: https://superuser.com/questions/341192/how-can-i-display-the-contents-of-an-environment-variable-from-the-command-promp/832962#832962 – music2myear Jan 02 '19 at 19:50
  • @Ramhound I don't believe that user-session variables can be set that way. – music2myear Jan 02 '19 at 19:52
  • @music2myear - The screenshot clearly shows that the Edit button is enabled for the user Path variable. If modified to include the desired path would update the Path variable for the user. Although I will admit, my duplicate choice wasn't the best (first relevant link). [This](https://superuser.com/questions/458554/global-vs-user-windows-environment-variables?rq=1) would be my second choice. – Ramhound Jan 02 '19 at 19:54
  • @music2myear Your second choice is much more relevant to my question. – pacmaninbw Jan 03 '19 at 01:12
  • 1
    Possible duplicate of [Global vs User Windows Environment Variables](https://superuser.com/questions/458554/global-vs-user-windows-environment-variables) – karel Nov 27 '19 at 01:37

0 Answers0