Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- echo 1. Forwarding Mode
- echo 2. Reset to Dynamic
- echo;
- set /P choice=Apply Profile:
- if %choice%==1 goto ptfwd
- if %choice%==2 goto reset
- :ptfwd
- netsh interface ip set address name="Local Area Connection" source="static" address="192.168.1.5" mask="255.255.255.0" gateway="192.168.1.1"
- netsh interface ip set dnsserver name="Local Area Connection" source="static" address="192.168.1.1"
- goto exit
- :reset
- netsh interface ip set address name="Local Area Connection" source=dhcp
- netsh interface ip set dnsserver name="Local Area Connection" source=dhcp
- goto exit
- :exit
- @echo on
Add Comment
Please, Sign In to add comment