Last active
December 27, 2015 02:09
-
-
Save hijak/7250698 to your computer and use it in GitHub Desktop.
Windows Powershell examples for interface config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##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