• Status: Solved
  • Priority: High
  • Security: Public
  • Views: 47
  • 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
Knowledgeable
Asked:
Knowledgeable
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

Join & Write a Comment

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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