Error 1 is essentially a failure of a script batch file to run in Windows/DOS. By default, whether run in Windows or DOS, the Run Script task will essentially open a command prompt and execute the tasks included in the script. Depending on the desired results of this, there may be a number of reasons this error would be generated:
- The script is actually a Visual Basic Script (VBS), but is missing the line at the top telling DS that it should be executed as VBS.
- The script is correctly executing as VBS, but the syntax in the VBS is in error.
- The script has some sort of syntax error, such as an incorrect switch on a command (i.e. running an install with a bad switch)
- There may be rights issues.
- There may be a DNS issue within the script. If you're using the %DSSERVER% token within your script.
- If it is a Visual Basic Script (VBS), be sure to include the text 'vbscript at the top of the script as a comment line. For example:
'vbscript - this simply pop-up a box on the client computer
msgbox "Hello World"
- If the VBS is actually failing, trouble-shoot the script by copying the text into a true VBS file and testing it on the client computer.
- Try copying the text into an actual batch file (that is, .bat, .cmd) and running it on the target computer (you may need to add “pause” lines in the batch file so you can capture errors). This will test the actual commands on the computer and leave the results of those exposed to plain view.
- Do as indicated in option 3 above. By exposing the commands to view, this may show if rights are denied.
- Verify that the client computer is able to resolve to the NetBIOS name of the DS. In the situation where this was seen, the Run Script would run when using the FQDN of the DS in place of the token but would not run when using the Netbios name in place of the token. The customer resolved the DNS issue and the error went away.
In all cases except for 1, the errors are external to the functionality of Deployment Solution, and should be diagnosed accordingly.
Note: Make sure the Specified user is a Domain or Local admin to run the script some scripts may need admin rights.
Deployment Solution 6.X (all versions)
Imported Document Id