Sign in to follow this  
Followers 0
highsnoop

runas exitcode

2 posts in this topic

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

Share this post


Link to post
Share on other sites



I found.

We just need to add the SeDebugPrivilege to get the exitcode of the runas command.

Thanks

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
Sign in to follow this  
Followers 0