sample script source vbs
I'm trying to run a vbscript from the script source, but I can't figure out how to direct output for it. Does anyone have a working vbscript source that they can show me?
-
Hi Jay,
The issue here is that wscript does not output to stdout, it outputs to a message box, which the Collector is unable to read. What you need to do is configure the default interpreter on the host to use cscript, which will output to stdout. This can be set with the following command.
C:> cscript //h:CScript
If this causes any problems for other scripts you may be running you can set the default back to wscript by running the following:
C:> cscript //h:WScript
Please sign in to leave a comment.
Comments
3 comments