
July 20th, 2008, 11:19 PM
|
|
Registered User
|
|
Join Date: Jul 2008
Posts: 6
Time spent in forums: 35 m 50 sec
Reputation Power: 0
|
|
|
Windows IP changing Script
hi guys..
i am having a windows IP changing script
strComputer = "."
arrIPAddress = Array("172.16.11.99")
arrSubnetMask = Array("255.255.255.0")
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colNetAdapters = objWMIService.ExecQuery("Select * from Win32_NetworkAdapterConfiguration")
For Each objNetAdapter in colNetAdapters
errEnableStatic = objNetAdapter.EnableStatic(arrIPAddress, arrSubnetMask)
Next
I want to add defaultgateway & prefred DNS to this script . Can anyone help on this issue
thanx In advance
|