Link to home
Start Free TrialLog in
Avatar of uac_user
uac_user

asked on

Vista: How to set Compatibiltiy->Privilege Level of application to "run as administrator" in batch-file?

Hi everyone,

i have a setup which deploys some apps, these must be enabled to run as admins afterwards.
I hoped that by running the initial setup with "run as administrator" it would be inherited to the deployed apps, which does not happen. Seems like if you set the "run as admin" once for a file the OS remembers it, but you cannot "carry" the setting to another Vista-PC.
So I would run a batch-file as part of my deployment. With which command(s) in my batch-file do I set the privilege-Level to my apps?

Thanks in advance,
uac_user
ASKER CERTIFIED SOLUTION
Avatar of McKnife
McKnife
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of leh327
leh327

If you have the admin right for all the machines, should you be able to batch schtasks.exe to
setup a job with "Run with hightest privileges" to execute the install, then
again with schtasks.exe to tell it to run, then delete the job.

get usage with:
schtasks /?