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.


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: Logo

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

Facebook photo

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

Connecting to %s