Jump to content

Recommended Posts

Posted (edited)

Thank you for your interest and help. It's exe file, not shortcut.

Tried to use _WinAPI_GetProcessWorkingDirectory to the the working dir, but when use the dir getton from the  API function to run the program, the it didn't run as expected. It means the working dir isn't correct.

Edited by jiataifeng
Posted (edited)

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

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...