Jump to content

How to find the working directory of a running program/process ?


Recommended Posts

I noticed the problem is gone with the admin windows account.

I was testing with user account.

So the problem turns to how to run a program as admin with non-admin user bypass UAC.

I tried to use runas, but it didn't work/

RunAs("admin","domain.com","adminpass",4,"cmd.exe",@WindowsDir)

 

 

Is it possible to use runas to open a window like this? I noticed whatever the account I used to open the cmd windows, it's non-admin one.

admin.PNG.4ce77cef222bdd9b28cfdb8bb4f60e45.PNG

 

 

Thank you very much

Edited by jiataifeng
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...