Thread
:
strcomputer value inserted from WinBatch File
View Single Post
#
7
(
permalink
)
October 23rd, 2003, 03:10 AM
pgtips
Friend of Wrox
Join Date: Jun 2003
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post
Its because the script has "Option Explicit" at the start, you are forced to declare all variables. Just add objWMIService to the list of declared variables (that's the Dim statement on line 2).
pgtips
View Public Profile
Find all posts by pgtips