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
 

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.

Ask a Question

Back
Top