1

How to configure my c# app to run in elevated mode from Standard User Account?

Generally i would like to add permission for a program to run in elevated mode under standard user account without popping up the window:

"Do you want to allow the following program from an unknown publisher to make changes to this computer?" And The administrator password is required...

John
  • 127

1 Answers1

0

The task scheduler workaround not possible with a standard user account because it doesn't have an admin token.

You must first activate the hidden admin account next use the RunAs command with the /savecred parameter and enter the admin password at least 1 time. Next time Windows reads the encrypted password and runs the tool as admin.

runas /user:ComputerName\Administrator /savecred "C:\Path\Program.exe"