When I run the command to show dhcp server scopes this is the output.
since the scope name is separated by "-" in the sample image "Total-LAN" becomes two elements and "Total-Corp-Wifi" becomes 3 array elements. There are other entries also that has more than 3 dashes(just not show here)...
I tried it already but there are entries like the one below having several spaces before the "-" then there is one with no space before and after "-"
10.228.164.0 - 255.255.255.128-Active -Sample test-CNC000000123
Hi,
I have a vbscript that runs the command "netsh dhcp server scope show clients 1" and captures and reads its output line by line and Split each line and stores it into array elements. The only separate that seems plausible to use is the dash "-".
The output of netsh dhcp server scope show...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.