Jump to content

RUNAS with a Domain/Username


 Share

Recommended Posts

Hi, I'm creating a simple RUNAS script and was wondering how to use creditials of a domain instead of a local administrator account. So far this is what I have.

RunAsSet("administrator", @ComputerName, "password")

Run("setup.exe", "", @SW_SHOWDEFAULT)

RunAsSet()

Which works great for local administrator login, but I would like to use domain credentials. I was hoping it would be something as simple as:

RunAsSet("domain/administrator", @ComputerName, "password")

Run("setup.exe", "", @SW_SHOWDEFAULT)

RunAsSet()

unfortunately that did not help. I was wondering if someone could help?

Thanks,

Nathan

Link to comment
Share on other sites

Hi and welcome to the AutoIt forum..:)

I don't want to be rude, but.... Did you try this link?

I think the question you asked, if I understood it right, has been answered like a zillion times..;)

I did a search with +RunAsSet + Domain. And got 9 pages of hits. If non of those answers your question I'm afraid you have to formulate the question more precisely and probably provide more info on how you do you tests and what goes wrong.

Happy scripting..:P

Link to comment
Share on other sites

Hi and welcome to the AutoIt forum..:)

I don't want to be rude, but.... Did you try this link?

I think the question you asked, if I understood it right, has been answered like a zillion times..;)

I did a search with +RunAsSet + Domain. And got 9 pages of hits. If non of those answers your question I'm afraid you have to formulate the question more precisely and probably provide more info on how you do you tests and what goes wrong.

Happy scripting..:P

Thanks for the help! I wasn't sure what to search under. I tried just domain and runas domain but came up with tons of irrelevant searches! Thanks for the tip! :P

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