Hello all...

The following line gives me a syntax error when executing the script, where
sServer is the name of a server on the network in the form of "zcd-rep-comm"

Set oServer = GetObject("WinNT://" & sServer)

I narrowed the syntax down to the "WinNT:" - If I change it to

Set oServer = GetObject("//" & sServer)

I no longer get the sysntax error, however I do get the following error

"File name or class name not found during Automation operation 'GetObject'."

The script is running on a WinNT machine and the server it is trying to get
to is a Win2K machine.

What in the heck am I dowing wrong here?

Thank you,

Mike Minor
Z-Code Systems, Inc.

Re: Syntax error by Michael

Michael
Fri Nov 05 13:34:38 CST 2004

> The script is running on a WinNT machine and the server it is trying
> to get to is a Win2K machine.
>
> What in the heck am I dowing wrong here?

WMI doesn't come pre-installed on NT...

Download details: Windows Management Instrumentation (WMI) CORE 1.5 (Windows
NT 4.0)
http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=C174CFB1-EF67-471D-9277-4C2B1014A31E



--
Michael Harris
Microsoft.MVP.Scripting