Changing LAN settings from a batch file and / or C #?

I'm not sure how to describe this without an image, so a quick snapshot of what I want to do in the batch file is attached (Windows 7 Enterprise 32 bit)

LAN proxy

In the "Internet Options" section of the "Connections" tab, there is a LAN settings button (marked in red) that opens the displayed dialog from the image. I already have the address and port that I want, all I want is a way to check or uncheck the checkbox from the batch file. I would also agree to answer how to do this in C #.

EDIT:

, , , . , -, , , PostMan, -.

+3
2

, , reg.

HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\

:

reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\\" /v "ProxyEnable" /T REG_DWORD /d 1

ProxyEnable 1 ()

reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\\" /v "ProxyServer" /T REG_SZ /d "192.168.1.1:8080

- 192.169.1.1:8080

, "

, /f , .

+5

Source: https://habr.com/ru/post/1765745/


All Articles