Answered Shortcut to tcp/ip settings

  • Thursday, March 25, 2010 1:35 PM
     
     

    Is there like a .cpl or something I could use that would directly open the tcp/ip setting dialog box for a specific connection?

All Replies

  • Thursday, March 25, 2010 1:43 PM
     
     

    Which os are you using?

    If you use Vista or newer you can use ncpa.cpl to access the old Network Connections page.

  • Thursday, March 25, 2010 2:05 PM
     
     

    "tcp/ip setting" . It would be nice if I could use rundll32 or something to open the properties sheet for a specific nic.

     

    Just to add this is to simply the process for end users. I already started writing a hta (which I'm no good at) to run netsh commands, but it would be a billion times more efficient if there was just a single command to open these properties per connection.

    • Edited by red888 Thursday, March 25, 2010 2:44 PM adding stuff
    •  
  • Thursday, March 25, 2010 7:46 PM
     
     

    Red, you have not provided much info on what you want.

    Did you know you view / change / set IP config with netsh???

    to change IP and default gateway:
    netsh int ip set address "local area connection" static 192.168.0.101 255.255.255.0 192.168.0.254 1

    to change DNS:
    netsh int ip set dns "local area connection" static 192.168.0.254 primary

    This is assuming 3 things.
    1) The network adapter you're trying to change the IP for is "local area connection". It could also be "local area connection 2" or "wireless network connection". Look in your control panel for the correct name
    2) The IP you want to set is 192.168.0.101, change this to whatever IP to want to use.
    3) The default gateway and dns are the same IP. If you are using some kind of router they usually are. Change this to match your network config found with the command ipconfig /all

    You could also script this via say a batch file you have users download or you push out to them.

     

  • Friday, March 26, 2010 7:51 AM
    Moderator
     
     

    No such *.cpl files available. You can make shortcuts by yourself. Please create a batch file with the following command.

    start ::{208D2C60-3AEA-1069-A2D7-08002B30309D}\::{7007ACC7-3202-11D1-AAD2-00805FC1270E}\::{Network Adapter GUID}

    You can find the “Network Adapter GUID” from the following registry key. 

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkCards\{Network adapter}\ServiceName

    Please note that you may need to run this command as administrator.


    Arthur Xie - MSFT
  • Monday, March 29, 2010 7:16 PM
     
     
    I plugged in my nic's guid and tried this on my machine, but it just opens and closes. No errors, but nothing else either.
  • Tuesday, March 30, 2010 3:31 AM
    Moderator
     
     
    If you plug another NIC, you need to create another shortcut for the new specified GUID of the network adapter.
    Arthur Xie - MSFT
  • Tuesday, March 30, 2010 12:43 PM
     
     
    Yeah what I said was I copied the value of MY nic's GUID and pasted it in {"Network Adapter GUID"} of the script you posted, but when I run it nothing happens. I put a "pause" in there and I'm not getting any error messages either.
  • Thursday, April 01, 2010 3:05 AM
    Moderator
     
     

    This method should work. You may run the command manually or create a shortcut for this command separately to check if it works. If it works properly you need to check the contents of your script.

    Please note that this command needs to be run as administrator.


    Arthur Xie - MSFT
  • Thursday, April 01, 2010 3:37 AM
     
     Answered

    I just tried it and it works great from a Command Prompt:

    reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkCards"

    to get the list of network cards. That gave me 8 (Broadcom NetXtreme 57xx Gigabit Controller) and  14 (VirtualBox Host-Only Ethernet Adapter).

    Then I entered reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkCards\8" to get the GUID which returned:

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkCards\8
        ServiceName    REG_SZ    {41EFDF4D-34E0-4E56-B6F3-16814FDD3397}
        Description    REG_SZ    Broadcom NetXtreme 57xx Gigabit Controller

    and finally entered

    start ::{208D2C60-3AEA-1069-A2D7-08002B30309D}\::{7007ACC7-3202-11D1-AAD2-00805FC1270E}\::{41EFDF4D-34E0-4E56-B6F3-16814FDD3397}

    which opened up the Properties dialog for the Broadcom card. Still had to click on the Properties button at the bottom. Runs correctly from a batch file called from a Command Prompt also.

    As soon as you make this a shortcut to the batch file it stops working, exactly as red888 said.


    Rich Why can't I be different and original like everybody else? - Vivian Stanshal
  • Tuesday, April 06, 2010 4:44 PM
     
     

    I typed this in EXACTLY as you explained it and still I get nothing:

    C:\Program Files\Support Tools>start ::{208D2C60-3AEA-1069-A2D7-08002B30309D}\::

    {7007ACC7-3202-11D1-AAD2-00805FC1270E}\::{My guid}          <hit enter>

    NOTHING.

     

    Also I think even if this did work its still not what I want:

    "....which opened up the Properties dialog for the Broadcom card. Still had to click on the Properties button at the bottom."

    I said specifically in the post I wanted to know if it was possible to get to "tcp/ip properties". Like directly. If this isn't possible thats ok, I just wanted to know if it was.

  • Friday, March 02, 2012 6:20 PM
     
     

    I was looking to do this as well go directly to IP settings. Don't know if anyone ever resolved this but. 2 ways work one with an error but it actually brings up the IP settings page. yes you still have to click props and IPV4, but this works as a shortcut bat file from desktop. 2 lines

    start ::{208D2C60-3AEA-1069-A2D7-08002B30309D}\::{7007ACC7-3202-11D1-AAD2-00805FC1270E}\::{E37CD015-6E00-4D99-AD69-9AA1C258E40A}
    start ip set address local area connection

    the other way is to download Free IP Switcher from eusing.com.  My norton antivirus says it is ok and i've not had any problems. and it actually works.  you can put in a ton of different ip's and switch on the fly. really cool 

  • Friday, March 02, 2012 6:22 PM
     
     

    I was looking to do this as well go directly to IP settings. Don't know if anyone ever resolved this but. 2 ways work one with an error but it actually brings up the IP settings page. yes you still have to click props and IPV4, but this works as a shortcut bat file from desktop. 2 lines

    start ::{208D2C60-3AEA-1069-A2D7-08002B30309D}\::{7007ACC7-3202-11D1-AAD2-00805FC1270E}\::{E37CD015-6E00-4D99-AD69-9AA1C258E40A}
    start ip set address local area connection

    the other way is to download Free IP Switcher from eusing.com.  My norton antivirus says it is ok and i've not had any problems. and it actually works.  you can put in a ton of different ip's and switch on the fly. really cool

  • Monday, February 04, 2013 6:42 AM
     
      Has Code

    I think I'm looking for the same thing as every body else...that is, a command-line I can drop into a batch file to create a shortcut to the dialog box at the end of the following series of windows:


    1. Control Panel\Network and Internet\Network Connections [ncpa.cpl]
      then right-click and select Properties;
    2. Local Area Connection Properties
      then highlight Internet Protocol Version 4 (TCP/IPv4), and select Properties;
    3. Internet Protocol Version 4 (TCP/IPv4) Properties
      under the General tab (first tab) click the Advanced button;
    4. Advanced TCP/IP Settings
      select DNS tab (second tab).

    Ultimately, that final tab presents a useful utility to change the preferred order of user-stored DNS provider addresses (the TCP/IPv4 Properties dialog box accepts two DNS server addresses, and selecting Obtain DNS Server Address Automatically causes them to disappear). I just want to navigate directly to that task without having to install a third-party programme or drill down through all those windows.


    No such *.cpl files available. You can make shortcuts by yourself. Please create a batch file with the following command.

    start ::{208D2C60-3AEA-1069-A2D7-08002B30309D}\::{7007ACC7-3202-11D1-AAD2-00805FC1270E}\::{Network Adapter GUID}

    Arthur Xie - MSFT


    I think that this part...

    start ::{208D2C60-3AEA-1069-A2D7-08002B30309D}\::{7007ACC7-3202-11D1-AAD2-00805FC1270E}

    ...is the same as...

    ncpa.cpl

    ...by which I mean that each command line has the effect of bringing up...

    Control Panel\Network and Internet\Network Connections

    ...which leaves a minimum of five steps.

    • Edited by patronanejo Monday, February 04, 2013 7:06 AM
    •