Reply to Message

not needed
For me, the built in command "netsh" works on 2000 and XP, and it runs from the command line. When I troubleshoot or set up some computers, I usually do 50 or 100 systems. By using NETSH from the command line and combining that with the wonderful program called PSEXEC from SYSTERNALS.com, I was able to change all of the users in the network to DHCP and add a different subnet mask in a mere few minutes.

Click Start-Run-cmd then enter
type "netsh interface ip show config" without quotes.
You will see a nice display of your network settings.
Here is the bat file I used to update a workstations settings with a new subnet mask of 255.255.0.0

@echo off

FOR /F "TOKENS=2* DELIMS=:" %%A IN ('NETSH INTERFACE IP SHOW CONFIG ^| FIND "SubnetMask"') DO FOR %%B IN (%%A) DO SET SUBNETMASK=%%B
if SUBNETMASk=="255.255.0.0" then goto skip

FOR /F "TOKENS=2* DELIMS=:" %%A IN ('NETSH INTERFACE IP SHOW CONFIG ^| FIND "IP Address"') DO FOR %%B IN (%%A) DO SET IPADDR=%%B

SET SUBNETMASK=255.255.0.0

FOR /F "TOKENS=2* DELIMS=:" %%A IN ('NETSH INTERFACE IP SHOW CONFIG ^| FIND "Default Gateway"') DO FOR %%B IN (%%A) DO SET DEFGATEWAY=%%B

netsh interface ip show config

netsh interface ip set address "Local Area Connection" static %IPADDR% %SUBNETMASK% %DEFGATEWAY% 1
goto end

:SKIP

:END


Save this bat on the network, use PSEXEC and execute it across all of your pcs to make global changes.
The power of command-line and DOS is oftentimes just easier to do in a network.
Maybe I miss the original intent of your vb app, but I'm always reluctant to add more software to a computer for any reason.

Jake
Posted by jakesty
2nd Jun 2005