On Tue, 05 Oct 2004 09:33:36 -0700, Chris Coryell wrote:
> Can anyone tell me how to push out a secondary WINS server
> to all my windows 2000 clients. We need to connect to
> another organizations WINS server and it'd be a lot easier
> if we could push this out rather than have to sit down and
> fat finger it in on each workstation.
>
> Thanks.
>
> Chris
Chris--
try this if running a logon script is okay:
{dump into text and save as .vbs}
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 = "your server here"
strSecondaryServer = "your server here"
objNetCard.SetWINSServer strPrimaryServer, strSecondaryServer
Next
regards,
KR
|