Setting WINS with a GPO

  • Thread starter Thread starter Guest
  • Start date Start date
Larry said:
Is there a way to change WINS settings using a GPO?

No.
Computer Startup Script -> netsh
but the problem is, that the name of your LAN connection must
always be the same ...

Mark
 
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
 
Back
Top