Set windows Proxy

Antworten
crawleroz1
Beiträge: 49
Registriert: 13 Mär 2018, 11:36

Set windows Proxy

Beitrag 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.
uncle_scrooge
Beiträge: 650
Registriert: 21 Feb 2012, 12:03
Wohnort: Mainz

Re: Set windows Proxy

Beitrag 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.
Benutzeravatar
wolfbardo
uib-Team
Beiträge: 1354
Registriert: 01 Jul 2008, 12:10

Re: Set windows Proxy

Beitrag von wolfbardo »

try netsh

Code: Alles auswählen

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


OPSICONF 2024
https://opsi.org/en/opsiconf/

Basisworkshop Mainz :

17. - 20. 06. 2024


opsi support - uib gmbh
For productive opsi installations we recommend maintainance + support contracts which are the base of opsi development.

http://www.uib.de
uncle_scrooge
Beiträge: 650
Registriert: 21 Feb 2012, 12:03
Wohnort: Mainz

Re: Set windows Proxy

Beitrag von uncle_scrooge »

All roads lead to Rome......
crawleroz1
Beiträge: 49
Registriert: 13 Mär 2018, 11:36

Re: Set windows Proxy

Beitrag von crawleroz1 »

unfortunately I can't find Rome in my case. Nothing works :cry:
Antworten