Set Static IP Address:
netsh interface ipv4 set address name="Wi-Fi" static 192.168.x.x 255.255.255.0 192.168.x.x
netsh interface ipv4 add dnsservers name="Wi-Fi" 192.168.x.x index=1
pause
Set back to default IP address:
netsh interface ipv4 set address name="Wi-Fi" dhcp
netsh interface ipv4 set dnsservers name="Wi-Fi" dhcp
pause
Open notepad & save the text into .bat file.
This command require administrator to run.
No comments:
Post a Comment