RE: Running Windows WMI Query as Different User...

2006-07-20 Thread Timothy Johnson
The first thing you should try to do is add this line at the top of your script if you're running into strange errors with Win32::OLE: Win32::OLE->Options(Warn => 9); That will turn on the big-time warnings. I suspect you're getting this error: "OLE exception from "SWbemLocator": User c

Running Windows WMI Query as Different User...

2006-07-20 Thread jpantera
Hello. Looking for some assistance on setting up my Win32 perl script that does WMI Query, so that is runs as a specified user (not the user who will fire off the script). Wrote a very crude VBScript program a while ago that worked (but need to re-write in perl) and it did the following... Se