Wednesday, March 20, 2013

Add IP Range To Windows Network Adapter From Command Line

for /L %a in (1,1,32) do netsh int ip add address "Local Area Connection" 192.168.0.%a 255.255.255.255
This will add 192.168.0.1 - 192.168.0.32 to the network adapter named "Local Area Connection"

You may need to change the adapter name to suite your specific adapter names.

No comments:

Post a Comment