in reply to Win32::OLE and Wscript Shell -> Getting data back
how to get the data back from the NET ADD command
Don't know how to read the return result directly (which seemed to be the real question) but here are two suggestions for getting around the issue:
- Try Win32::OLE->LastError(), though this may only report certain categories of errors.
- Check the event log (via Win32::EventLog or whatever). Seems like a terrible bother but success/failure should be appear in the logs.
In Section
Seekers of Perl Wisdom