Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Change Windows boot to IP scheduled task

2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Boot to IP can be used for computer room migration and other requirements. According to the need, you can make the server shut down at a specified time, then move to a new location, and IP is automatically set after boot.

Take the Win2008R2 system as an example:

Set up IP scripts: this example uses static IP scripts

Static IP (satic.bat)

Netsh interface ip set address name= "source=static addr=192.168.2.57 mask=255.255.255.0 gateway=192.168.2.1 1netsh interface ip set dns name=" source=static addr=192.168.2.57 mask=255.255.255.0 gateway=192.168.2.1 1netsh interface ip set dns name= "Local connection" source=static addr=114.114.114.114

DHCP gets IP (dhcp.bat)

Netsh interface ip set address name= "source=dhcpnetsh interface ip set dns name=" source=dhcpnetsh interface ip set dns name= "Local connection" source=dhcp

Use the console to add scripts to scheduled tasks

Change the IP planning task

Schedule tasks at a specified time of shutdown

Test change IP successful

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report