Hi All,
I need help with updating the Primary WINS Server and Secondary WINS Server settings for computers using Dial Up Networking.
I am using the following script.
On Error Resume Next
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colNetCards = objWMIService.ExecQuery _
("Select * From Win32_NetworkAdapterConfiguration Where IPEnabled = True")
For Each objNetCard in colNetCards
strPrimaryServer = "192.168.1.100"
strSecondaryServer = "192.168.1.200"
objNetCard.SetWINSServer strPrimaryServer, strSecondaryServer
Next
It easily updates users connected to the LAN but will not update the Primary and Secondary WINS Settings for Dial Up Users.
Does anybody know why this is?
Thanks,
Joe
I need help with updating the Primary WINS Server and Secondary WINS Server settings for computers using Dial Up Networking.
I am using the following script.
On Error Resume Next
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colNetCards = objWMIService.ExecQuery _
("Select * From Win32_NetworkAdapterConfiguration Where IPEnabled = True")
For Each objNetCard in colNetCards
strPrimaryServer = "192.168.1.100"
strSecondaryServer = "192.168.1.200"
objNetCard.SetWINSServer strPrimaryServer, strSecondaryServer
Next
It easily updates users connected to the LAN but will not update the Primary and Secondary WINS Settings for Dial Up Users.
Does anybody know why this is?
Thanks,
Joe