executeVBScript()

Runs a Vbscript, with or without command line arguments. If the Vbscript displays a popup window or notifies the end user, check the box for Use Wscript instead of Cscript.

Operating systems supported: Windows.

NOTE   To avoid risk of privilege escalation attacks, scripts and files which run under System context, or as an Administrator level user, should be executed from a folder with locked down ACL permissions. The VSA agent provides a default folder called "System", under the Agent Working Directory, which is intended for this use. It can be stored as a variable by selecting "Secure Agent Working Directory Path" from the getVariable() command.

Example

writeFile("AddFavorite.vbs", "#TEMP%\AddFavorite.vbs", "All Operating Systems", "Halt on Fail")
executeVBScript("%TEMP%\AddFavorite.vbs", "#favoritename# #favoriteURL#", false, "All Operating Systems", "Halt on Fail")
deleteFile("%TEMP%\AddFavorite.vbs", "All Operating Systems", "Halt on Fail")