Copy Environment Variables between Windows Users

So I have multiple users setup on my machine and was having issues with the Environment Variables.  Whenever I did it manually I always seems to have some issues.

Then I finally stumbled over the following in the ancient archives known as Stack Overflow.

http://stackoverflow.com/questions/559816/how-to-export-and-import-environment-variables-in-windows

 

Run the following two commands and it generates two .reg files you can easily run in your other user.

regedit /e "%CD%\user_env_variables.reg" "HKEY_CURRENT_USER\Environment"
regedit /e "%CD%\global_env_variables.reg" "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment"

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s