Question Locked

batch file for set proxy on a system?

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

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.

3 replies

by rob miners

Configuring Clients to Proxy using Group Policy or Login Script

http://www.stbernard.com/ip4kb/iPrism/Networking/Sessions-Clients/Browsers/IP0346.htm

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"=":" "ProxyEnable"=dword:00000001

Change to the private IP address of your HTTP Proxy, and 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

by blackepyon01

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

This discussion is closed to new replies.