netsh question

how do i change from "static ip address" to "obtaion an ip address automatically" setting with netsh?
Hiroyuki TamuraField EngineerAsked:
Who is Participating?
Like this:
netsh interface ip set address "Local Area Connection" dhcp

Open in new window

Where "Local Area Connection" is the name of the interface that you want to affect.

JohnBusiness Consultant (Owner)Commented:
If this is on a workstation, best to run TCP/IP Reset to do this.

Open cmd.exe with Run as Administrator
Then: netsh int ip reset c:\resetlog.txt
Then: ipconfig /flushdns

Restart the computer after doing this
Hiroyuki TamuraField EngineerAuthor Commented:
Thank you!
JohnBusiness Consultant (Owner)Commented:
You are very welcome and I was happy to help.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.