Discussion Locked

Syntax error while running WSH

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I get a syntax error on the following line of code while running under WSH:
Set objComputer = GetObject("WinNT://192.168.22.80")

3 replies

by bill_h

(Pursuant to our e-mail discussions...)

The suntax you are trying to use is part of the Active Directory Services Interface. ADSI is included in Windows 2000, but since you are using Windows NT, you must install ADSI v2.5.

You may wish to view the MSDN article "Administering Windows through Windows Script Host" located at:

http://msdn.microsoft.com/library/periodic/period99/adminWSH.htm

(If the URL above does not work, locate and remove any spaces inserted by the TechRepublic system.)

Hope this helps...

This discussion is closed to new replies.