Executing VBScript file on clients via SMP Task
Created: 04 Jun 2012 | Updated: 05 Jun 2012 | 3 comments
This issue has been solved. See solution.
I've been trying to execute a vbscript file from the local client computer by using a "Run Script" task, but everytime i run the task and check the task instance details, I see the following message under "Output Properties":
Script: Microsoft (R) Windows Script Host Version 5.7
Copyright (C) Microsoft Corporation. All rights reserved.
C:\WINDOWS\TEMP\AltirisScript041B41208BA19A149C9DD.vbs(1, 11) Microsoft VBScript compilation error: Expected statement
If I go into the task's advanced properties and uncheck the box for "Save script output with task status" and run the job again (it does fail) and I receive a return code of "1".
Of course, if I run the VBScript from the client machine locally it works like a charm. No problems. Can anyone help me understand what's happening and perhaps how best to troubleshoot it?