23

Is there a way to launch the IE proxy settings dialog from the Windows command line to save time going through menus in any application?

soutarm
  • 831
  • 1
  • 8
  • 14

6 Answers6

44

I've found another one, shorter:

inetcpl.cpl ,4

You can use it in Run box or Command Prompt.

Vinicius Xavier
  • 563
  • 4
  • 5
  • 1
    Any way to open LanSetting in launch window. – S.P Singh Jul 22 '16 at 03:15
  • @shiv.mymail - Not without using some form of UI automation to click the button (AutoHotKey or native .NET classes). There is no method that exposes this functionality. – John Homer Nov 29 '16 at 15:46
  • Thanks this is the only that worked for me. Running it through a run command. – Stryker Apr 20 '17 at 14:10
  • 1
    The difference between this answer and the accepted answer is that command line from accepted answer will pause execution and wait for user to close the dialog. This one allows command file to proceed and run next command while dialog is open. – zmechanic Jun 27 '17 at 11:26
33

Okay, I made a 15 minutes research for you and got following commands and a link.

To Open Internet Settings

inetcpl.cpl

To Open Internet Settings with Connections Tab

rundll32.exe shell32.dll,Control_RunDLL inetcpl.cpl,,4

For more information http://discussions.virtualdr.com/archive/index.php/t-41613.html

Umair A.
  • 6,690
  • 20
  • 83
  • 130
5

The closest I can get is

control inetcpl.cpl,,4

which opens the Internet Properties dialog with the Connections tab preselected. Unfortunately it still requires you to click on LAN settings to get to the proxy settings.

Timwi
  • 65,159
  • 33
  • 165
  • 230
4

Alternatively if all you want to do is select "Automatically detect Settings" You could just use Reg.exe to modify the Registry Directly.

REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyServer  /d "hhttp=proxy-url:port;https=proxy-url:port;ftp=proxy-url:port;socks=proxy-url:port;" /t REG_SZ /f
Michael Mantion
  • 215
  • 3
  • 4
  • 2
    This answer helped me a lot to point me in the right direction. I ended up using the AutoConfigURL parameter. – SebastianH Aug 12 '16 at 12:13
1

Not something new but still useful.

inetcpl.cpl ,4    

And then simply press Alt+L on keyboard to change the proxy settings.

Raymo111
  • 514
  • 8
  • 24
0

command: rundll32.exe shell32.dll,Control_RunDLL inetcpl.cpl,,4

you can found it on Windows ten forums List of Commands to Open Control Panel Items in Windows 10

You also can create a shortcut by steps below:

1) Right click or press and hold on your desktop, click/tap on New, and click/tap on Shortcut.

2) Copy the command you want from the table below as the "location", and click/tap on Next.

3) Type a name you want for this shortcut, and click/tap on Finish.

4) If you like, you can Pin to Start, Pin to taskbar, add to All apps, add to Quick Launch, assign a keyboard shortcut to, or move this shortcut to where you like for easy use.

Kevin Xiong
  • 153
  • 13