Reputation: 21
I need a batch file to check that the PC is using a proxy server or not and give me a yes or no result. I've already read about batch files enabling or disabling proxies but i want a batch file to check that am I using a proxy or not and give me the yes or no result.
Upvotes: 2
Views: 2276
Reputation: 37569
command to show proxy settings:
netsh winhttp show proxy
to set a proxy server:
netsh winhttp set proxy myproxy
to set direct access
without proxy:
netsh winhttp reset proxy
Upvotes: 2