Link to home
Start Free TrialLog in
Avatar of Member_2_1261037
Member_2_1261037Flag for United States of America

asked on

Scheduled Task for Custom App Calls EXCEL.EXE only when LOCAL ADMIN

We have a couple of VisualStusio 2010 custom apps that use EXCEL to generate output.  These custom apps only run properly when the user account used in the scheduled task has LOCAL ADMIN rights.  Without the admin rights, the custom app calls excel properly at the desktop, but not as a scheduled task.  Is there any way to allow a custom app to call excel WITHOUT being a local admin on the server?
Avatar of Aaron Tomosky
Aaron Tomosky
Flag of United States of America image

Is the app trying to save a file inside the users folder or some other place you need to be a local admin to access?
Hello

Your account should have some specific rights (that local admin account already has)
http://serverfault.com/questions/256196/windows-scheduled-task-what-are-the-minimum-user-rights-needed-for-the-task

Dan
Avatar of Member_2_1261037

ASKER

Aaron, The application saves the file to a network path where the user already has access.

Dan,  The log on as batch job rights are already assigned.  Please note that the custom app runs properly from the scheduled task; it just cant call/open excel.
The task runs properly.  The application called by the task runs with no issues.  That VS2010 application calls EXCEL, but EXCEL will only open if administrator, even though the user account can run EXCEL at the desktop level.
did you uncheck "run with highest priveledges"?
No, the Run w/ High Priv is set.
uncheck that and see what happens
Unchecking the option didnt fix it.
ASKER CERTIFIED SOLUTION
Avatar of David Johnson, CD
David Johnson, CD
Flag of Canada 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
Using BATCH FILE CONTAINING 'CMD.EXE /C START application.exe' in task scheduler did the trick!  Thanks David!