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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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 /?