Share this article

Improve this guide

3 Ways to Set & Edit Environment Variables on Windows 11

It’s easier than you think & more powerful than you know!

5 min. read

Updated onAugust 29, 2024

updated onAugust 29, 2024

Share this article

Improve this guide

Read our disclosure page to find out how can you help Windows Report sustain the editorial teamRead more

Resolve multiple Windows PC issues and speed up your PC effortlessly with specialized software.

Setting environment variables on Windows 11 can help youcustomize your system,run scripts, and configure applications.

In this guide, we will discuss three ways with step-by-step instructions to do that so you can configure your system according to your preferences. But first:

Types of Environment Variables

Types of Environment Variables

There are three types of Environment Variables:

How do I set & use Environment Variables on Windows 11?

How do I set & use Environment Variables on Windows 11?

1. Using the Settings app

2. Using the Command Prompt

3. Using the Windows PowerShell

You can use any of the methods to add a new or missing environment variable to prevent issues like thesystem could not find the environment option that was entered

How do I edit Environment Variables on Windows 11?

1. Using the Settings app

2. Using the Registry Editor

3. Using the Windows PowerShell

How do I get a list of Environment Variables in Windows?

To get a list of environment variables in Windows 11, you can open Command Prompt with administrator rights and typeset, and hitEnter.

In Powershell, with admin privileges to get a list of environment variables, copy & paste the following command and hitEnter:[System.Environment]::GetEnvironmentVariables()

If you want toprint the environment variables listyou got on PowerShell to apply the same settings on another computer, read this guide.

Where are Windows environment variables stored?

You can find the environment variables in Registry Editor. The system variables are found inComputer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment, wherein the user variables are located atComputer\HKEY_CURRENT_USER\Environment

Setting environment variables on Windows 11 can help you customize your system settings; however, you must always exercise caution when making changes to system variables.

Remember to double-check the variable name & value, and always create a backup of your registry editor before making changes.

Stuck somewhere? Don’t hesitate to mention your queries in the comments section below. We will be happy to assist you.

More about the topics:Windows 11

Srishti Sisodia

Windows Software Expert

Srishti Sisodia is an electronics engineer and writer with a passion for technology. She has extensive experience exploring the latest technological advancements and sharing her insights through informative blogs.

Her diverse interests bring a unique perspective to her work, and she approaches everything with commitment, enthusiasm, and a willingness to learn. That’s why she’s part of Windows Report’s Reviewers team, always willing to share the real-life experience with any software or hardware product. She’s also specialized in Azure, cloud computing, and AI.

User forum

0 messages

Sort by:LatestOldestMost Votes

Comment*

Name*

Email*

Commenting as.Not you?

Save information for future comments

Comment

Δ

Srishti Sisodia

Windows Software Expert

She is an electronics engineer and writer with a passion for technology. Srishti is specialized in Azure, cloud computing, and AI.

Reviewed byAlex Serban