How to create user variables and system environment variables in Windows 10

Environment variables are user variables or Windows system variables that describe the environment in which apps run. They can tell your apps things like the name of the computer, the name of the user account, the current working directory, etc. Do you want to know more about how to use environment user variables and Windows system variables? If you do, read this tutorial and learn how to create environment variables in Windows 10. There are some situations in which knowing how to do that can prove very useful.

Contents

  1. How to create environment user variables in Windows 10
  2. How to create Windows system variables in Windows 10
  3. What user variables or Windows system variables did you create?

NOTE: To create user variables and Windows system variables, you have to access the Environment Variables window. If you don’t know how to do that, a quick way to do it is by executing the command “rundll32.exe sysdm.cpl,EditEnvironmentVariables” in the Run window (Win + R). However, there are other ways to open it, which we covered in this guide: What are Environment Variables in Windows?.

How to create environment user variables in Windows 10

User environment variables are available only to your user account. When creating such variables, their values should include paths towards locations that are accessible to your user account. For example, you can’t have your user variable point to a personal folder of another user account (like Documents, Pictures, Music, etc.). In the “User variables for [user account]” section, click or tap New.

How to create user variables and system environment variables in Windows 10

The Windows 10 Environment Variables window

The “New User Variable” window opens. Start by typing the name of the variable you want to create (1). Make it something suggestive so that you can easily remember its purpose. Then, type its value (2).

The value may include a path or more. A path can point to a folder or a file. You can also use other existing variables to build up the path you want. For example, you can use a value like %Userprofile%Desktop to point the variable to your user account’s Desktop. If you want it to have more than one value, separate the values with semicolons (;) — for example, Path 1; Path 2; Path 3.

How to create user variables and system environment variables in Windows 10

Entering the name and value of a new user variable

NOTE: It is not mandatory to use only paths to folders and files as values for user variables. Depending on what you want to do with the variable you create, you can also store strings of text as its value.

When you are done setting the user variable, click or tap OK. The new variable is added to the list of user variables, but it is not yet created, so you can’t use it at this time.

How to create user variables and system environment variables in Windows 10

The new user variable has been added to the list

For the new environment variable to be created, in the Environment Variables window, click or tap OK.

How to create user variables and system environment variables in Windows 10

Saving the new user variable in Windows 10

To test if the user variable was created successfully and that it points to what you want, open a Run window (Windows + R). Type the name of the environment variable you just created, between percent (%) signs. For example, to execute the digitalcitizen variable we just created, we had to type %digitalcitizen%. Then, we pressed OK. In our case, it opened the digitalcitizen folder found in our user’s Documents.

How to create user variables and system environment variables in Windows 10

Checking a user variable in Windows 10

IMPORTANT: Any user can add, change, or delete user environment variables. User variables can be created by Windows 10, apps, and users alike.

How to create Windows system variables in Windows 10

The process for creating system variables is the same as for creating user variables. To make sure you get it right, let’s go through another quick example.

In the System variables section, click or tap New.

How to create user variables and system environment variables in Windows 10

Starting the process of creating a new Windows system variable

The New System Variable window opens. Enter the name of the variable (1) and its value (2). Note that you can add multiple values to a variable - all you need to do is separate them with semicolons (;).

How to create user variables and system environment variables in Windows 10

Entering the name and value of a New System Variable

IMPORTANT: If you specify a path as a value for a system variable, that path should be accessible to all user accounts. If that path points to a location where only one user account has access, you should create a user variable instead of a system variable.

When you are done customizing the new system variable, click or tap OK. The new variable is added to the list of system variables, but it is not yet created.

How to create user variables and system environment variables in Windows 10

The Windows system variable has been added to the list

In the Environment Variables window, click or tap OK so that the new environment variable is created.

How to create user variables and system environment variables in Windows 10

Saving a new Windows system variable

To test if the user variable was created successfully, open Run (Windows + R) and insert the name of the environment system variable you created, between percent (%) signs. For example, to run the Games variable that we created, we had to type %Games%. Then, we pressed OK.

How to create user variables and system environment variables in Windows 10

Verifying a Windows system variable

Windows opened the Games folder where all games are installed on our Windows 10 test computer. All users have access to this folder, and they can use this variable to access those games quickly.

IMPORTANT: Are you wondering whether any user can add system environment variables or change existing ones’ values? The answer is NO! Only administrators can perform these actions. Standard users don’t have enough clearance to make or change Windows system variables because they affect every user and every app on the PC. This tutorial provides more details about standard and Administrator accounts.

What user variables or Windows system variables did you create?

The process involved in creating environment variables in Windows 10 is not that complicated. However, before you get the hang of it, you should experiment first by making a couple of safe user variables that don’t negatively impact the system’s functioning.

Sign up and earn $1000 a day ⋙

How To Access An Android Phone With A Broken Screen

How To Access An Android Phone With A Broken Screen

Dealing with a broken screen on your Android phone is a hassle. Although phone screens are pretty tough, one nasty drop can shatter them completely. Given that most people have a lot of irreplaceable content on their phones, it is

Find out how to find friends and family using online services

Find out how to find friends and family using online services

In today's world, where information is more accessible than ever before, finding long-lost friends or relatives has become much easier. Online services for finding people provide convenient and effective tools that allow you to restore lost connections.

IObit Uninstaller 13 - One Click to Uninstall All Unwanted Programs

IObit Uninstaller 13 - One Click to Uninstall  All Unwanted Programs

In the busy software utilities industry, the available uninstallation tools are often overshadowed by more glamorous alternatives. Nonetheless, an excellent way of removing programs on a PC is vital for optimal system performance and the elimination of unwanted applications.

Instructions for creating Moon phase trend

Instructions for creating Moon phase trend

Instructions for creating a Moon phase trend. The Moon trend is extremely popular on TikTok, creating an unprecedented fever. Through Moon phase will help you know the date

How to edit videos posted on YouTube without losing views

How to edit videos posted on YouTube without losing views

How to edit videos posted on YouTube without losing views, You forgot to blur sensitive content in videos posted on YouTube. Don't worry, here's how to adjust it

How to enable dark mode on TikTok

How to enable dark mode on TikTok

How to turn on dark mode on TikTok, How to turn on dark mode on TikTok is not difficult. The article will guide you in detail how to change the TikTok interface to black on Samsung

Shirt size chart - How to choose the most accurate shirt size

Shirt size chart - How to choose the most accurate shirt size

Shirt size chart - How to choose the most accurate shirt size, What is the shirt size chart? Shirt size means only the size and size of the shirt or pants. Shirt size varies according to direction

Instructions for drawing prizes to receive Lucky Money on ZaloPay

Instructions for drawing prizes to receive Lucky Money on ZaloPay

Instructions for drawing prizes to receive Lucky Money on ZaloPay. Recently, Zalo has launched the program "Amazing lucky money, Happy Spring Luck" taking place from January 29, 2021 to

How to view and recover Microsoft Outlook password

How to view and recover Microsoft Outlook password

How to view and recover Microsoft Outlook password, How to view Outlook password on computer is not difficult. This article will guide you how to view and recover Outlook password

Instructions for creating and searching for draft posts on Facebook

Instructions for creating and searching for draft posts on Facebook

Instructions for creating and searching for draft articles on Facebook. Currently, we can save articles that we have created but have not yet posted on Facebook. Here, WebTech360 invites

How to set up LibreOffice Writer to work like Microsoft Word

How to set up LibreOffice Writer to work like Microsoft Word

How to set up LibreOffice Writer to work like Microsoft Word, If you're planning to switch from Microsoft Word to LibreOffice Writer but want a similar experience

Instructions for turning off saving videos on TikTok are extremely simple

Instructions for turning off saving videos on TikTok are extremely simple

Instructions for turning off saving videos on TikTok are extremely simple, to help people block others from downloading and saving their videos simply and easily. So today, WebTech360

Instructions for creating genealogical and organizational charts on Google Sheets

Instructions for creating genealogical and organizational charts on Google Sheets

Instructions for creating genealogical charts and organizing them on Google Sheets. Google Sheets is an online office application that helps us easily edit online spreadsheets,

How to import and manage multiple email accounts in Gmail

How to import and manage multiple email accounts in Gmail

How to import and manage multiple email accounts in Gmail, Want to manage all emails in Gmail? Let's learn how to manage and add multiple accounts with WebTech360

Instructions for using Photoshop filters for beginners

Instructions for using Photoshop filters for beginners

Instructions for using Photoshop filters for beginners, Each filter in Photoshop has its own algorithm and uses. Below are instructions for using the internal filter

How to create automatic clicks on Macrorify

How to create automatic clicks on Macrorify

How to create automatic clicks on Macrorify, Macrorify helps you create automatic click tasks and detect images. In this article, let's find out how with WebTech360

Instructions for logging out of Instagram account remotely

Instructions for logging out of Instagram account remotely

Instructions for remotely logging out of your Instagram account. If you don't know how to remotely log out of your Instagram account, today WebTech360 would like to introduce

Instructions for remotely logging out of Tik Tok account

Instructions for remotely logging out of Tik Tok account

Instructions for remotely logging out of Tik Tok account. To help people quickly log out of Tik Tok accounts from other devices, today WebTech360

Instructions for blurring photos on B612

Instructions for blurring photos on B612

Instructions for blurring photos on B612. Recently, the B612 application has updated the image blur effect. Next, WebTech360 will introduce the article Instructions for blurring photos

How to fix the error of printing blank pages in Microsoft Excel

How to fix the error of printing blank pages in Microsoft Excel

How to fix the error of printing blank pages in Microsoft Excel. Why do some Excel documents not display data or contain blank pages when printed? Below are the reasons