Jump to content

Recommended Posts

Posted

I would like to run a program with administration rights under account with administrator in windows 7. For example:

c:\ProgramFiles\abc\def\xy.exe

user: XXX

password: YYY

computer name: COMPUTER

domain: ZZZ

i use RunAs ( "XXX", "COMPUTER", "YYY", 0, "c:\ProgramFiles\abc\def\xy.exe")

#RequireAdmin

but iam not able t run the exe file.please help me .

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
×
×
  • Create New...