Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: High
  • Security: Public
  • Views: 107
  • Last Modified:

Export and import Win environment variables

I'm looking for a quick and easy way of exporting and importing Windows environment variables.

I have a user who creates a lot of custom Windows environment variables that do things such as launch custom Windows Explorer paths, open different programs, and do other things.

These variables are defined with letters such as u that has a value of C:\Users so that when the user types in %u% within a Windows Explorer browser window or within the run dialog box Windows Explorer will open in the C:\Users folder.

The user also has several programs that will launch if other variables such as %z% or %r% are typed in.

We would like to be able to export these custom Windows Explorer environment variables so that they can be exported into another Windows operating system.

How can this be done?
1
IT Guy
Asked:
IT Guy
1 Solution
 
Yves AccadNetwork Security EngineerCommented:
One way of doing this is to use RegEdit to export the following two keys:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment
HKEY_CURRENT_USER\Environment

The first set are system/global environment variables; the second set are user-level variables.
2
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now