How to edit environment variables quickly in Windows 8.1 and Windows 8

Environment variables in an operating system are values that contain information about the system environment, and the currently logged in user. Recently we covered how to view those variables for system, for a specific user or for a process. In this article, I would like to share with you a trick to view or edit environment variables directly, from the command line or a shortcut.


To open environment variables settings directly, it is possible to use a special RUNDLL32 command, as described below.

  1. Press Win + R shortcut keys together on your keyboard. This will open the Run dialog.
    Tip: See the ultimate list of all Windows keyboard shortcuts with Win keys.
  2. Type the following command in the Run box:
    rundll32.exe sysdm.cpl,EditEnvironmentVariables

    rundll32 sysdm.cpl EditEnvironmentVariables
    Press the Enter key, and it will run the Environment Variables window immediately.
    Environment Variables window
    You can start to edit them directly, which is very useful.

You can create a shortcut to this command to pin it on the Start screen or to the taskbar or even assign a global hotkey to that shortcut.

Note that by default the Environment Variables editor window will allow you to edit only current user variables. All system-related buttons will be disabled.
Environment Variables window per user
To edit the system variables, you have to run this command as administrator, for example, via an elevated command prompt instance.
rundll32 sysdm
After that, all options in the Environment Variables window will be accessible.

1 thought on “How to edit environment variables quickly in Windows 8.1 and Windows 8

  1. David

    Could you go a little more in depth about what changing these will do please? Thank you.

    Reply

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.