How can I get all environment variables in windows?


Is it possible to show or get all environment variables in windows? I would like to check Java environment variables in my Windows 10 laptop, so how I can get it using a Command prompt or any other way?

Thanks


Asked by:- vikas_jk
0
: 1520 At:- 9/27/2021 2:10:34 PM
Windows environment-variables




1 Answers
profileImage Answered by:- manish_jk

Open Command Prompt in your windows and type the below command

echo %PATH%

It will give you all the environment variables details of the Windows.

To get a list of all environment variables enter the command set

Using PowerShell

You need to use the following command instead: echo $Env:PATH

To set system or global variable using CMD

setx /m variable value

Hope it helps.

1
At:- 9/27/2021 2:22:22 PM





Login/Register to answer
Or
Register directly by posting answer/details

Full Name *

Email *




By posting your answer you agree on privacy policy & terms of use