Sunday, April 3, 2011

Where are environment variables stored in registry?

I need to access an environment variable remotely. To do this I think the best way is to read it from registry.

Where are environment variables stored in registry?

From stackoverflow
  • Here's where they're stored on XP and Vista:

    User Variables: HKEY_CURRENT_USER\Environment

    System Variables: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment

    Here's a good article on this with other links:

    http://vlaurie.com/computers2/Articles/environment.htm

0 comments:

Post a Comment