:: local vars set proxy=http://proxy.lan:8080 set noproxy=127.0.0.1,::1,localhost,.lan,.local :: set machine environment variable setx HTTP_PROXY %proxy% /m setx HTTPS_PROXY %proxy% /m setx NO_PROXY %noproxy% /m ## List environment variables # cmd set | more # in powershell Get-ChildItem Env: # or fancy: Get-ChildItem Env: | Format-Table -Wrap -AutoSize
145200cookie-checkWindows set environment variable permanently