My PC running in Windows 2000 Server has 2 network card. Somehow, after booting up, the IP address set for both network card is always gone. So I need to manually set it back, thus it is very troublesome for me. Thus I write a script and put in the startup.
Echo Setting IP Address for Interface "LAN"
netsh interface ip set address "LAN" static 188.8.131.52 255.255.255.0
Echo Setting IP Address for Interface "Internet"
netsh interface ip set address "Internet" static 184.108.40.206 255.255.255.240 220.127.116.11
netsh interface ip set dns "Internet" static 18.104.22.168
netsh interface ip add dns "Internet" 22.214.171.124
Echo Setting of IP completed.
However, this will only be activate when I log in.
How can I set the IPs after booting up automatically, because I am planning to schedule for a auto-reboot every morning.