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
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