Jump to content

Recommended Posts

Posted

Hi can anyone help me with this problem?

I would like to use the Rusasset command to run a VBS script.

The following command is shown as below;

RunAsSet('rspsgh0005', 'HBAP','*rsprsp05')

Set WshShell = CreateObject("WScript.Shell")

WshShell.Run "cscript.exe""\\136.121.2.42\vm\scripts\updatepolicy.vbs"

It shows me error on Set WshShell = CreateObject("WScript.Shell") statement

==> Missing separator character after keyword.:

How do i modify this code or is there a better way to run this script updatepolicy.vbs

Can anyone help me?

Thank you

Posted

Welcome to autoit. This is out of the helpfile RunAsSet.

Initialise a set of user credentials to use during Run and RunWait operations. 2000/XP or later ONLY.

RunAsSet('rspsgh0005', 'HBAP','*rsprsp05')

RunWait(@ComSpec & ' /c cscript.exe "\\136.121.2.42\vm\scripts\updatepolicy.vbs"', @ScriptDir, @SW_SHOW)
AutoIt Scripts:NetPrinter - Network Printer UtilityRobocopyGUI - GUI interface for M$ robocopy command line

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...