https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_environment_variables?view=powershell-6

查看所有的环境变量

Get-ChildItem env:

Name Value
---- -----
__COMPAT_LAYER RunAsAdmin
ALLUSERSPROFILE C:\ProgramData
APPDATA C:\Users\clu\AppData\Roaming
COLUMNS 120
CommonProgramFiles C:\Program Files\Common Files

 

查看某一个环境变量

 $env:no_proxy

localhost,127.0.0.1,172.31.212.149

 

Get-ChildItem env:no_proxy

Name Value
---- -----
NO_PROXY localhost,127.0.0.1,172.31.212.149

 

修改环境变量

比较多,还是原文看