Jump to content

Recommended Posts

Posted

I am trying to open a command prompt as the local admininstrator.

When I run the following script (script or exe) all I get is my regular command prompt.

RunAsSet("Admin", @Computername, "password")
Run("cmd.exe")

If you open a command prompt and type "runas /user:admin cmd" you'll be prompted for your admin password, then a second box will open that is titled "cmd (running as compname\admin)".

Everything else I put in the script works notepad.exe, regedit.exe just not cmd.exe.

Posted

it just opens a dos box (my profile, not the admin)

i'm using xp sp2

no errors of any kind. It just sits there like i clicked "start", "run", typed "cmd" and hit enter

Posted

:think: You guys hit the nail on the head this time!

I guess I was expecting autoit to be a bit clunky (like some other languages)

Thanks everyone!!

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...