Thanks Mark. Followup question though, I've tried the following startup
script under Computer Settings>Windows Settings>Scripts>Startup, but haven't
had any success running. When I run the script standalone, the WINS changes,
but not when it runs at startup.
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 = "xxx.xx.xx.xx"
strSecondaryServer = "xxx.xxx.x.xxx"
objNetCard.SetWINSServer strPrimaryServer, strSecondaryServer
Next
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.