|
| 1 | +--- |
| 2 | +title: PowerToys Environment Variables for Windows |
| 3 | +description: Environment Variables is a convenient way to manage environment variables. |
| 4 | +ms.date: 10/24/2023 |
| 5 | +ms.topic: article |
| 6 | +no-loc: [PowerToys, Windows, Environment Variables, Win] |
| 7 | +--- |
| 8 | + |
| 9 | +# Environment Variables |
| 10 | + |
| 11 | +Environment Variables app offers a nice and easy way to manage environment variables. Also, you can create profiles and manage multiple variables at once. Profile variables have precedence over User and System variables. In the background, applying the profile adds variables to User environment variables. When profile is applied, if there is an existing User variable with the same name, backup variable is created in User variables which will be reverted to original one on profile un-apply. |
| 12 | + |
| 13 | +Applied variables list shows the current state of the environment, respecting the order of evaluation of environment variables (Profile -> User -> System). Evaluated Path variable value is shown at the top of the list. |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | +## Edit/Remove variable |
| 18 | + |
| 19 | +To edit or remove a variable (profile, User or System) for specific variable select more options button (**•••**): |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | +## Add profile |
| 24 | + |
| 25 | +To add new profile: |
| 26 | + |
| 27 | + - Select **New profile** |
| 28 | + - Enter profile name |
| 29 | + - Set Enabled toggle to On to apply the profile right after creaton |
| 30 | + - Select **Add variable** to add variables to profile (either new variable or existing User/System variables). |
| 31 | + - Select **Save** |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | +To edit or remove the profile, select profile more options button (**•••**). |
| 36 | + |
| 37 | +## Apply profile |
| 38 | + |
| 39 | +To apply profile, set profile toggle to On. Only one profile can be applied at the time. Applied variables list will show applied profile variables at the top (below Path variable): |
| 40 | + |
| 41 | + |
| 42 | + |
| 43 | +## Settings |
| 44 | + |
| 45 | +From the Settings menu, the following options can be configured: |
| 46 | + |
| 47 | +| Setting | Description | |
| 48 | +| :--- | :--- | |
| 49 | +| Launch as administrator | Launch as administrator to be able to manage System variables. If disabled, only profile and User variables can be modified. Environment Variables is started as administrator by default. | |
0 commit comments