Friday, June 27, 2008

VB Script to switch between static and DHCP IP configuration.

'ToggleStaticDhcp2b.vbs
'IP address changes on the network.
'A script to switch the net adapters between static and dhcp ip configuration.
'MAR-2008



If WScript.Arguments.Count <> 1 Then
Usage
WScript.Quit(-1)
End If