kiboost

RunAs mechanism | python

4 posts in this topic

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

Share this post


Link to post
Share on other sites



Yes I had a look into this, ut always have a message that machine miss a privilege for this. When autoit runas works on same machine :/


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

Share this post


Link to post
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