highsnoop Posted December 1, 2011 Share Posted December 1, 2011 Hi, I try to get the exit code of a runas command but when i use the OpenProcess to get the handle i receive a "access denied". (It's the same with LocalSystem or Administrator) With which Privileges the runas command is executed ? Or how can get the exitcode of my runas command (without use a file, directly from my autoit script) Best Regards Link to comment Share on other sites More sharing options...
highsnoop Posted December 2, 2011 Author Share Posted December 2, 2011 I found. We just need to add the SeDebugPrivilege to get the exitcode of the runas command. Thanks 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