Seite 1 von 1

Set windows Proxy

Verfasst: 25 Mai 2018, 12:48
von crawleroz1
Hello,
I wonder if it is somehow possible so set the proxy server on a Windows 7 client via Opsi.

I've already tried

[DosBatch_3]
reg add "hklm\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /T REG_DWORD /d 00000001 /f
reg add "hklm\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings" /v MigrateProxy /T REG_DWORD /d 00000001 /f
reg add "hklm\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyServer /T REG_SZ /d a-proxy:8080 /f

and

[Registry_TestPatch]
openkey [HKEY_Current_User\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings]
set "ProxyEnable" = REG_DWORD:00000001
set "MigrateProxy" = REG_DWORD:00000001
set "ProxyServer" = "a-proxy:8080"

But it seems it's executed without administrator rights. To all the creative minds, is there any way to set the proxy for a domain user who doesn't have admin rights. System wide (for all users) would be ok as well.

Re: Set windows Proxy

Verfasst: 25 Mai 2018, 13:32
von uncle_scrooge
Not sure why your DOSBATCH_3 doesn't work.
Even when called with /sysnative the values go to HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Internet Settings instead of HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings

Registry_Testpatch makes not really sense.
The scripts are running under the system account. So you would patch system's registry here.
Changing HKEY_Current_User to HKEY_Local_Machine would give you a 'system-wide' setting.

Maybe you will grab the winst-manual and read about AllNTUsers. What you can do with it and what not.

Re: Set windows Proxy

Verfasst: 25 Mai 2018, 13:49
von wolfbardo
try netsh

Code: Alles auswählen

DosInAnIcon_setproxy_win7 winst /sysnative
...
[DosInAnIcon_setproxy_win7]
netsh.exe winhttp set proxy $httpproxy$
Bardo Wolf

Re: Set windows Proxy

Verfasst: 25 Mai 2018, 14:31
von uncle_scrooge
All roads lead to Rome......

Re: Set windows Proxy

Verfasst: 31 Mai 2018, 09:52
von crawleroz1
unfortunately I can't find Rome in my case. Nothing works :cry: