netsh question

Hiroyuki Tamura
Hiroyuki Tamura used Ask the Experts™
on
how do i change from "static ip address" to "obtaion an ip address automatically" setting with netsh?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Commented:
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.

https://support.microsoft.com/en-us/help/257748/how-to-use-the-netsh-command-to-change-from-static-ip-address-to-dhcp

-saige-
JohnBusiness Consultant (Owner)
Most Valuable Expert 2012
Expert of the Year 2018
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 Engineer

Author

Commented:
Thank you!
JohnBusiness Consultant (Owner)
Most Valuable Expert 2012
Expert of the Year 2018

Commented:
You are very welcome and I was happy to help.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial