none
Windows Server 2008 R2 - How to set user environment variables ?

    Question

  • I run 2008 as my desktop and not in a domain. I would like to add to my path variable locations of my development folders when I am logged in as a user, but have only found that I cannot seem to add to the path for just a single user. Documentation specifies use GPO but that is not available unless attached to a domain. How can I add to the path for just a specific user ?
    Thursday, September 03, 2009 9:00 PM

Answers

  • Hi jewettware,

    In-line to brain's suggestion , please follwo the below link which explains you to configure the environment variables.

    http://technet.microsoft.com/en-us/library/cc772047.aspx
    sainath !analyze
    • Marked as answer by Wilson Jia Friday, September 04, 2009 7:12 AM
    Friday, September 04, 2009 3:12 AM
  • You can do it using the "Environment Variables" button in "Advanced system settings".  This is in Control Panel\System.

    You could also do it programatically with a VB script.  The object would be objShell.Environment().

    I don't remember the exact syntax, but the environment is merged from three different places, system, user and volatile.  You can change any of them with a script.

    You could try changing the Registry directly.  This should work for system and user but a reboot or logon might be necessary.

    There is also an old resource kit utility called pathman.exe.
    • Marked as answer by Wilson Jia Friday, September 04, 2009 7:12 AM
    Thursday, September 03, 2009 11:33 PM

All replies

  • You can do it using the "Environment Variables" button in "Advanced system settings".  This is in Control Panel\System.

    You could also do it programatically with a VB script.  The object would be objShell.Environment().

    I don't remember the exact syntax, but the environment is merged from three different places, system, user and volatile.  You can change any of them with a script.

    You could try changing the Registry directly.  This should work for system and user but a reboot or logon might be necessary.

    There is also an old resource kit utility called pathman.exe.
    • Marked as answer by Wilson Jia Friday, September 04, 2009 7:12 AM
    Thursday, September 03, 2009 11:33 PM
  • Hi jewettware,

    In-line to brain's suggestion , please follwo the below link which explains you to configure the environment variables.

    http://technet.microsoft.com/en-us/library/cc772047.aspx
    sainath !analyze
    • Marked as answer by Wilson Jia Friday, September 04, 2009 7:12 AM
    Friday, September 04, 2009 3:12 AM