şu internet ayarlarını otomatiğe alacak batch kodu arıyorum. tcp/ip değiştirmeyi buldum ama ayarları tekrar otomatiğe alırken tekrar oraya gitmeyeyim diyorum. batch işi görsün.
i.hizliresim.com
tcp/ip değiştirme kodu şuydu:
netsh interface ip set address "Ethernet" static 192.168.0.51 255.255.255.0 192.168.0.1 1
netsh interface ip set dns "Ethernet" static 8.8.8.8
netsh interface ip add dns "Ethernet" 8.8.4.4
i.hizliresim.com

tcp/ip değiştirme kodu şuydu:
netsh interface ip set address "Ethernet" static 192.168.0.51 255.255.255.0 192.168.0.1 1
netsh interface ip set dns "Ethernet" static 8.8.8.8
netsh interface ip add dns "Ethernet" 8.8.4.4

tamam buldum. şu iki kod tcp ipyi otomatiğe aldı:
netsh int ip set address "Ethernet" dhcp
netsh int ip show config
interface ip set address "Ethernet" dhcp
netsh interface ip set dns "Ethernet" dhcp
freetakilir

1