Syntax error while running WSH
I get a syntax error on the following line of code while running under WSH:
Set objComputer = GetObject("WinNT://192.168.22.80")
Web Development
I get a syntax error on the following line of code while running under WSH:
Set objComputer = GetObject("WinNT://192.168.22.80")
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...
by ptdnet
by ptdnet
This discussion is closed to new replies.
Sort by Trending