Edit Proxy settings on a remote computer
Posted on 2009-02-24
I was given this code on experts exchange:
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t reg_dword /d 00000001 /f
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyServer /t reg_sz /d "w2k3rti03:8080" /f
reg add "HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\Internet Settings" /d "Security_HKLM_only" /t reg_dword /v 00000001 /f
It enables the proxy for a remote computer, executed from my own laptop with the aid of PsTools.
C:\>Pstools\>psexec.exe \\remote_pc_name -c -d IEReg.bat
However it doesnt seem to be working now, i changed my laptop, got PsTools in the C: along with the IEReg.bat file...? it works if i run it for my own pc but not a remote one? Any suggestions?
Also is there a way this script can be executed using a scheduled task, without prompting the user to authorise/action the prompt..