2

I am looking for simple ways to change IPv4 properties of one of my networks and actually I can't find anything promising, just something about netsh. But I think there should be way to create a .bat file or something, to have a "one click" shortcut to change the settings. Could anyone help me with that?

These are changes to be done:

enter image description here

1 Answer 1

6

I am looking for simple ways to change IPv4 properties of one of my network connections.

Use the following commands in a batch file:

netsh interface ipv4 set address InterfaceName dhcp
netsh interface ipv4 delete dns InterfaceName addr=all
  • Replace InterfaceName with the name of the connection you which to change, for example "Local Area Connection"

See Netsh commands for Interface IP for more information.


Further Reading

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.