how to open tcp/ip properties from cmd or run directly?

Is there anyone knows that how to open tcp/ip ver 4 properties from cmd or run directly? I mean the window that you can setup your ip, gateway dns. i want to make a shortcut of ip properties or open it from cmd Did some research, looks like there is nothing like appwiz.cpl can open that ip setup window directly. Any idea? PS: I need to know the way to open that ip setup GUI window from cmd or run. This is the best answer i found, but it is still not opening that ip setup window directly, you still have to click couple times. Use this to get your NIC number:

reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkCards" 
Then to get your NIC GUID
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkCards\YourCardNumber 
Then do this:
start ::\::\::
this actually just like ncpa.cpl But it is still not opening that ip setup GUI window directly. asked Mar 29, 2014 at 23:27 995 3 3 gold badges 12 12 silver badges 23 23 bronze badges

4 Answers 4

There is no way to open up that specific property window directly. There's only a shortcut to the "generic" interfaces screen, being ncpa.cpl .

You can however use netsh from cmd to directly set or view the properties. For instance, if you want to set the IP address of your "Local Area Connection" (default name for the primary network interface) to 192.168.0.5 , with a subnet of 255.255.255.0 and a gateway of 192.168.0.1 , you would use:

netsh interface ipv4 set address name="Local Area Connection" source=static address=192.168.0.5 mask=255.255.255.0 gateway=192.168.0.1 

For an overview of all possible options, use:

netsh interface ipv4 set address /? 

To view the current configuration, you can use:

netsh interface ipv4 show addresses "Local Area Connection" 

Which would then show:

Configuration for interface "Local Area Connection" DHCP enabled: No IP Address: 192.168.0.5 Subnet Prefix: 192.168.0.0/24 (mask 255.255.255.0) Default Gateway: 192.168.0.1 Gateway Metric: 0 InterfaceMetric: 10