MoustafaBorhan
MoustafaBorhan

Reputation: 33

Enable and Configure proxy using CMD

seeking your support to create a bat (CMD) file that can be used by standard user and administrators that can configure the proxy settings and the port number to be as shown below

proxy : 10.10.10.10 port number : 1111 and check mark bypass proxy settings and add xxx.xxx.xxx.xxx to the exceptions

thank you in advance

Upvotes: 1

Views: 23408

Answers (1)

BDL
BDL

Reputation: 22175

On Windows, one can modify the network settings via commandline by using the netsh command.

For example, changing the proxy works as follows:

netsh winhttp set proxy myproxy

or in your scenario:

netsh winhttp set proxy 10.10.10.10:1111

Have a look at the detailed documentation here, and at this superuser thread

Upvotes: 3

Related Questions