Internet ON/OFF Switch / How to change IP Address via batch file or Command prompt.
Filename: - Internet ON-OFF Switch.bat
(Static IP Address)
@echo off
##------IP Address-------##
netsh interface ip set address "Wireless Network
Connection" static "192.168.1.170" "255.255.255.0"
"192.168.1.1"
##------DNS-------##
netsh interface ip set dnsservers "Wireless Network
Connection" static 8.8.0.0 validate=no
netsh interface ipv4 add dnsserver "Wireless Network
Connection" address=8.8.2.2 index=2 validate=no
Filename: - DhcpAddress.bat
(obtained IP Address)
###--------DHCP IP
Address------------###
netsh
int ip set address name = "LAN" source = dhcp
#####--------Remove
DNS-----------------####
netsh
dnsclient delete dnsserver "Wireless Network Connection" all
No comments:
Post a Comment