Solved

How can you invoke Internet Protocol Properties menu via command line?

Posted on 2008-10-26
3
1,736 Views
Last Modified: 2011-10-19
I would like to invoke the Internet Protocol (TCP/IP) Properties menu via a command line.  I know you could use ncpa.cpl to call Network Connections, but I would like to get into Internet Protocol config (see attched bmp).  Is there a way to do this?



TCPIP.bmp
0
Comment
Question by:John_2000
  • 2
3 Comments
 
LVL 2

Expert Comment

by:cemal_ozun
ID: 22809836
Not too sure what you are trying to accomplish, can you clarify. I use NETSH allot as it allows you configure and read current configuration from command line.
Have a read of the bellow KB
http://support.microsoft.com/kb/242468
 
0
 

Author Comment

by:John_2000
ID: 22811877
Sorry I was not clear ...  What I would like to find a command that I could type via command prompt that would simulate key entry and open the Internet Protocol (TCP/IP) Properties screen.  Basically a shortcut.  Then I would be able to call it in a script to simplify entry of data with out additional key strokes and menu navigation.
0
 
LVL 2

Accepted Solution

by:
cemal_ozun earned 125 total points
ID: 22812964
I still think you would be better off using the netsh command, you can request user input to provide the IP address details using a script if you want.
 The following command configures the interface named Local Area Connection with the static IP address 192.168.0.100, the subnet mask of 255.255.255.0, and a default gateway of 192.168.0.1:
netsh interface ip set address name="Local Area Connection" static 192.168.0.100 255.255.255.0 192.168.0.1 1
Below command sets the primary dns
netsh interface ip set dns "Local Area Connection" static 192.168.0.200
Set Secondary DNS
netsh interface ip add dns "Local Area Connection" 192.168.0.201
 Have a look at the MS KB article http://technet.microsoft.com/en-us/library/cc785383.aspx
 
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Subnet question 5 43
Pinging a machine with WOL enabled 4 39
Port Generator Tool 10 95
Windows 7 keeps losing its IP configuration 15 92
Article by: rfc1180
The Maximum Segment size (MSS) is an important consideration when troubleshooting connectivity via the Internet/Intranet. As the packets are routed via the Internet/Intranet, the packets must traverse through multiple routers in the path between two…
Network ports are the threads that hold network communication together. They are an essential part of networking that can be easily ignore or misunderstood, my goals is to show those who don't have a strong network foundation how network ports opera…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now