Jump to content

RunAs Test Script not working


LVCVA
 Share

Recommended Posts

Here is my script which is taken directly from the AutoIt Help file under RunAs

CODE
; Fill in the username and password appropriate for your system.

Local $sUserName = "Username"

Local $sPassword = "Password"

; Run a command prompt as the other user.

RunAs($sUserName, @ComputerName, $sPassword, 0, @ComSpec, @SystemDir)

I compiled this into an EXE and when I run it, nothing happens. Any suggestions?

Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

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