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?
IT GuyNetwork EngineerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows 10

From novice to tech pro — start learning today.