Jump to content

RunAs mechanism | python


kiboost
 Share

Recommended Posts

Hi,

I use a lot RunAs in autoit, for example to import some reg file when in a user session (win7 x64) or starting bat file. All in a private local network of course, knowing all domain and user accounts.

I'm now trying to write such function in python, basically running a command (subprocess or whatever) as another user with passing domain, username, password.

I can't find how to do it in python, so any insight on how autoit does it whould be nice. What does autoit RunAs do under the hood ?

Thanks

Win7 pro x64. scripts compiled to x64. - Autoit v3.3.6.1 | Scite 1.79

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