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.
Set windows Proxy
-
- Beiträge: 650
- Registriert: 21 Feb 2012, 12:03
- Wohnort: Mainz
Re: Set windows Proxy
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.
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
try netsh
Bardo Wolf
Code: Alles auswählen
DosInAnIcon_setproxy_win7 winst /sysnative
...
[DosInAnIcon_setproxy_win7]
netsh.exe winhttp set proxy $httpproxy$
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
-
- Beiträge: 650
- Registriert: 21 Feb 2012, 12:03
- Wohnort: Mainz
Re: Set windows Proxy
All roads lead to Rome......
-
- Beiträge: 49
- Registriert: 13 Mär 2018, 11:36
Re: Set windows Proxy
unfortunately I can't find Rome in my case. Nothing works