Setting Windows network settings from the command line

Last Modified: Wed, 07 Mar 2012 01:21:05 +0000 ; Created: Wed, 07 Mar 2012 01:20:23 +0000

Credit to:
wmic computersystem where name="%COMPUTERNAME%" call rename name="NEW NAME HERE"
  • Requires a reboot (shutdown -r -t 3)
netsh interface ip set address name="Local Area Connection" static 192.168.0.20 255.255.255.0 192.168.0.1
  • No reboot required