Jump to content

[Question] Task Scheduler - Problem when logged in as a normal user


Recommended Posts

Posted

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


Posted

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.

Posted
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 look

Well 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 :thumbup

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! :D

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...