Search found 2 matches

by jdawg
Mon Dec 03, 2007 9:05 am
Forum: VBScript
Topic: Passing argument to WMI Select statement in ExecQu
Replies: 2
Views: 1471

Passing argument to WMI Select statement in ExecQu

hmmm... it runs but doesn't return any colItems to enumerate. Here is the entire code (it is just an example) but works if I set the directory value statically in the code ('c:userstatlo01') On Error Resume Next Const wbemFlagReturnImmediately = &h10 Const wbemFlagForwardOnly = &h20 ShareServer = WS...
by jdawg
Mon Dec 03, 2007 8:29 am
Forum: VBScript
Topic: Passing argument to WMI Select statement in ExecQu
Replies: 2
Views: 1471

Passing argument to WMI Select statement in ExecQu

Hi, I want to pass arguments UserAccount and ManagerAccount to a vbscript. Then using WMI have it move the contents of the user accounts directory to the manager's account. Unfortunately, I can't find any examples of syntaxt that works in using a variable in the SELECT statement of the objWMIService...