• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer

techtips

Technical stuff!

  • Home
  • WindowsOS
  • Offline Installer
  • Web links

Backup windows environmental variables

April 3, 2018 by admin Leave a Comment

There are 2 places to add or edit windows environmental variable

  • User variables [i.e Current user]
  • System variables [i.e common to all users]

Problem

There are situations when you want to restore environmental variables, situations may be accidentally you have deleted variables or system crashed or you changed your computer…

We will see different ways we can backup environmental variables for future references

Solution

Method1

Open command prompt, type “SET” and enter
C:\Users\userName>set

this will list all the environmental settings on your machine.

You can even push the result displayed in to a text file
C:\Users\u0146751>set >> c:\envSetttings.txt
This command will help you to write all your environmental settings to a text file envSettings.txt under C:\ drive. [You can provide your own file name and path]

Method2

Backup the environment registry

Open registry – Start | Run | regedit 

Navigate to

  • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager

Click on the Environment folder, and this will list all the system variables set for your machine

to backup, click on File | Export and save as .reg or .txt format

  •  HKEY_CURRENT_USER\Environment

This will list all the environment variables set for the current user

to backup, click on File | Export and save as .reg or .txt format

 

Filed Under: WindowsOS

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Categories

Recents

  • Copy file path with slashes in MacOS Mojave instead of triangle
  • Open hidden files in mac text editor
  • How to manage and open chrome browser extensions or plugins
  • Create an executable command file in MAC OS
  • Backup windows environmental variables

Menu

open all | close all
  • Contact Us
    • About Us
  • Download [official] portable notepad++
    • Find IP address on windows machine
      • Different ways to open remote desktop from windows
      • How to restart remote machine/server in windows
      • Place chrome’s address bar to bottom of screen

Footer

Design

With an emphasis on typography, white space, and mobile-optimized design, your website will look absolutely breathtaking.

Learn more about design.

Content

Our team will teach you the art of writing audience-focused content that will help you achieve the success you truly deserve.

Learn more about content.

Copyright © 2025 · Genesis Sample on Genesis Framework · WordPress · Log in