Skip to content

Instantly share code, notes, and snippets.

@hijak
Last active December 27, 2015 02:09
Show Gist options
  • Save hijak/7250698 to your computer and use it in GitHub Desktop.
Save hijak/7250698 to your computer and use it in GitHub Desktop.
Windows Powershell examples for interface config
##rename interface
netsh interface set interface name=”Old Name” newname=”newname”
##add ip config
netsh interface ip set address name="Public" static 192.168.0.100 255.255.255.0 192.168.0.1
##add dns config
netsh interface ip add dns "public" 83.138.151.80 INDEX=1
netsh interface ip add dns "public" 83.138.151.81 INDEX=2
##clear event logs
Clear-Eventlog -Log Application, System, Security
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment