batch file for set proxy on a system?

By dinupaul1983 ·
Hi my name is dinu. i want to set proxy for all my client systems through group policy. for that i need to create a batch file for setting proxy on system.

can you please tell how to write the script for setting proxy on system.

This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Answers

Collapse -

This would be easier

by Jacky Howe In reply to batch file for set proxy ...

Configuring Clients to Proxy using Group Policy or Login Script

Create setproxy.reg (any filename can be used)

Open notepad & type in as follows:

Windows Registry Editor Version 5.00 (or the appropriate version of regedit, if different)

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings] "ProxyServer"="<Your Proxy IP Address>:<Proxy Port>" "ProxyEnable"=dword:00000001

Change <your proxy IP address> to the private IP address of your HTTP Proxy, and <Proxy Port> to the port that iPrism is configured to proxy for (3128 by default). Save the file with the name you choose.

Copy setproxy.reg to login script folder.

Add the following line to the login script.

Regedit /s setproxy.reg

Collapse -

Set it server side

by blackepyon01 In reply to batch file for set proxy ...

For all the local systems or all clients on domain? You could use GP to set IE to force use of proxy for all users of the domain.

User Configuration/ Windows Settings/ Internet Explorer Maintenance/ Connections/ ProxySettings

Related Discussions

Related Forums