How pipe vbscript output into kbox logs
Hi
I am trying to figure out how I can execute a vbscript on a workstation and retreive an output from that script back into the kbox logs. I am using an online kscript with a dependency of the vbs file and and on success task which runs cscript and the vbs. The script I am using will amend the boot order on a HP system, the result of this script could be any one of 6 outputs, from 'success' to 'access denied' or 'failure'. Obviously I can set the errorlevel that the vbscript pipes out relative to the output but I cant see how to pipe this back to the kbox. All I can do is be advised that the script executed ok. My next step was going to be to create a file/reg entry from the vbscript for each output and then create another kscript task for each one, this just seems a bit long winded and inelegant.
What I would ideally like would be to see the result of the script after it has executed on 300+ machines and clearly identify which ones had a problem at a glance.
Any help much appreciated.
Many thanks
Simon
I am trying to figure out how I can execute a vbscript on a workstation and retreive an output from that script back into the kbox logs. I am using an online kscript with a dependency of the vbs file and and on success task which runs cscript and the vbs. The script I am using will amend the boot order on a HP system, the result of this script could be any one of 6 outputs, from 'success' to 'access denied' or 'failure'. Obviously I can set the errorlevel that the vbscript pipes out relative to the output but I cant see how to pipe this back to the kbox. All I can do is be advised that the script executed ok. My next step was going to be to create a file/reg entry from the vbscript for each output and then create another kscript task for each one, this just seems a bit long winded and inelegant.
What I would ideally like would be to see the result of the script after it has executed on 300+ machines and clearly identify which ones had a problem at a glance.
Any help much appreciated.
Many thanks
Simon
0 Comments
[ + ] Show comments
Answers (5)
Please log in to answer
Posted by:
airwolf
14 years ago
Posted by:
jkatkace
14 years ago
Posted by:
shoddinott
14 years ago
Posted by:
GillySpy
14 years ago
For those who come along and wonder how you might have done it, here's a similar example. This question is very similar to the "getting data into the registry" part
http://www.kace.com/support/kb/index.php?action=artikel&cat=5&id=968&artlang=en
Please include your code if you are able.
http://www.kace.com/support/kb/index.php?action=artikel&cat=5&id=968&artlang=en
Please include your code if you are able.
Posted by:
shoddinott
14 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.