Export and import Win environment variables

IT Guy
IT Guy used Ask the Experts™
on
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?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Network Security Engineer
Commented:
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.
IT GuyNetwork Engineer

Author

Commented:
Yves,

Thank you very much for your help.

Please also see my other question Steps to browse registry locations within old Win 10 registry (contained in Windows.old folder).

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial