Run vbscript in windows

broken image

Running it from an Elevated Command Prompt may help, unless there’s an error in the script where it does not check whether it’s already elevated before trying to prompt for elevated credentials.

broken image

When you double-click it do you get a prompt to run the script as Administrator? It may be the case that when you run it on a command line with no GUI, it’s not able to pop-up the UAC prompt and thus it just fails. If I had to guess, I’d say the script probably has logic to trigger a UAC elevation prompt when you run it.

broken image

error_elevation_failed is not a familiar VBScript error, it’s probably a custom error handler that’s part of the script itself. You’ll need to open an Elevated Command Prompt, and have the script execute via the command line cscript.exe //nologo myscriptfile.vbsĪnd have that run correctly before you’d have any hope of getting it to run from the BES client. If it’s not running from inside a batch file, that pretty clearly seems like a problem with the VBScript itself.

broken image

( imported comment written by JasonWalker)