Ping group

Find all computers within the mobile phone unit

Typically, ping only ping an IP address. A network of 255 computers only duty, unless it is a large network off, change the subnet mask, and can be expanded more computers. Such as:

If we want a one-time check all the machines within the network, you can enter the following command:
for / L% d in (1,1,255) do the ping 192.168.1% d.

It Ping this segment of all computers, as long as it is turned on:

If the waiting time is too long, you can choose to save the results to disk inside 1.txt file c:
for / L% D in (1,1,255) do D >> of ping 192.168.1% S:. /1.txt

as the picture shows:

Guess you like

Origin www.cnblogs.com/v2019/p/11627044.html