How can i change proxy for certain user in domain?

L

Lion2004

Hi,

I have domain pc-s and share 10.3.3.1 for example. Also PC names: nr1, nr2,
nr3 and so on.... I need to find the way to change remotely or via registry
(running script) users Internet Explorer proxy server address and port. Can
you give me some ideas how it can be done?

Thank you.

Peeter
 
L

Lion2004

Thank you Klaus for answear.

But actually i'm searching solution to run script or .bat file where i can
choose certain pc number and provide necessary data to set desired proxy only
to this pc. But these links you gave are very helpful, will research them
more deeply.

Thank you.

P.S. Will post this question in correct queue next time!
 
K

Klaus Jorgensen

Lion2004 used his keyboard to write :
But actually i'm searching solution to run script or .bat file where i can
choose certain pc number and provide necessary data to set desired proxy only
to this pc. But these links you gave are very helpful, will research them
more deeply.

You could use a batch file like this in your logon script:
---------------------------------------
@echo off
goto code
; Proxy definitions
proxy,pc1,10.3.3.1:80
proxy,pc2,10.3.3.2:80
proxy,pc3,10.3.3.3:80
:code
set regkey=HKCU\Software\Microsoft\Windows\CurrentVersion\Internet
Settings
for /f "tokens=1,2,3 delims=," %%i in (%~dpnx0) do if /i !%%i==!proxy
if /i %%j==%computername% (
reg add "%regkey%" /v ProxyEnable /t REG_DWORD /d 1 /f >nul
reg add "%regkey%" /v ProxyServer /t REG_SZ /d %%k /f >nul
)
set regkey=
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top