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

How to realize batch processing of remote batch modification of computer IP settings

2025-04-09 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

This article mainly introduces how to achieve remote batch modification of computer IP settings batch processing, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let Xiaobian take you to understand.

The remote change script for the network IP settings.

When the network rectification requires a large number of IP modifications, you can use this script to make changes (it does not take effect until the computer is restarted, you can continue to work), and then wait for the off time to modify the switch configuration, so that all computers can work with the new IP the next day.

The prerequisite is to know the domain administrator password or the local administrator password of all computers (the latter is troublesome), and the client computer is WIN2K or XP (the firewall opens port 135x139).

One command to modify in batches:

For / l% I in (2Power1254) do net use / / 192.168.0% I / user:admin@domain.com "password" & & setipconfig 192.168.0% I 10.0.0.0% I 255.255.255.0 10.0.0.1

The setipconfig.bat content is as follows:

The code is as follows:

@ echo off

Echo 4 | find "ECHO" > nul & & echo usage: setipconfig remoteip newip newsubnet newgateway & & goto: end

Sc / /% 1 query RemoteRegistry | find "RUNNING" | (sc / /% 1 config RemoteRegistry start= demand & & sc / /% 1 start RemoteRegistry)

: loop

Sc / /% 1 query RemoteRegistry | find "RUNNING" & & goto begin

Ping 127.0.0.1-n 3 > null

Goto loop

Goto end

: begin

For / f% I in ('reg query / /% 1/HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/Tcpip/Parameters/Interfaces ^ | find "{"') do (

Reg query / /% 1amp%% I / v IPAddress | find "% 1" & & (

Reg add / /% 1amp%% I / v IPAddress / t REG_MULTI_SZ / d% 2 / f) & & (

Reg add / /% 1amp%% I / v SubnetMask / t REG_MULTI_SZ / d% 3 / f) & & (

Reg add / /% 1amp%% I / v DefaultGateway / t REG_MULTI_SZ / d% 4 / f)

: end

Thank you for reading this article carefully. I hope the article "how to realize batch processing of remote batch modification of computer IP settings" shared by the editor will be helpful to everyone. At the same time, I also hope that you will support and pay attention to the industry information channel. More related knowledge is waiting for you to learn!

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

Development

Wechat

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

12
Report