kiboost Posted October 20, 2015 Share Posted October 20, 2015 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 More sharing options...
JohnOne Posted October 22, 2015 Share Posted October 22, 2015 CreateProcessAsUser() ? AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
kiboost Posted October 23, 2015 Author Share Posted October 23, 2015 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 Link to comment Share on other sites More sharing options...
JohnOne Posted October 26, 2015 Share Posted October 26, 2015 Perhaps you should try in the language specific threads if you don't know how to use the function. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now