Shauni Posted December 5, 2006 Posted December 5, 2006 Hi,I've set up a scheduled task on my pc using an admin account.This works fine as long as there isn't another (normal user) account logged on to the pc. If I do log on with a normal user account the scheduled task exits with an "exit code of (1)".Scheduled task consists of a .cmd file that opens an Excel-file, runs a macro and closes the file again. Has to run every 2 hours on a pc that's used by 6 different useraccounts.Is there a way to get this to work or do we need to find another solution?Regards,Debbie
eyeball Posted December 5, 2006 Posted December 5, 2006 are the other users members of the local admin account? im not sure that it would matter but have a look
allen2 Posted December 5, 2006 Posted December 5, 2006 To debug the error, does excel is launched when the scheduled task run and a normal user is logged on ? You can check in taskmanager.
jondercik Posted December 5, 2006 Posted December 5, 2006 Have you tried setting the task to use different credentials?
Shauni Posted December 6, 2006 Author Posted December 6, 2006 To debug the error, does excel is launched when the scheduled task run and a normal user is logged on ? You can check in taskmanager.No Excel was not launched. I had to end the task manually for it to stop. Task started, did nothing but kept running.Have you tried setting the task to use different credentials?Yes, have tried different credetials but no luck...are the other users members of the local admin account? im not sure that it would matter but have a lookWell it seems it DOES matter!! The account I used to test the scheduled task has local admin rights. I did the test again with an account that doesn't have local admin rights and this works just fine Don't really have an explanation for this, but since the users of the program don't have local admin rights anyway I think I'm gonna stick with our current program.Thanks for your help!
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now