Go Back   Access World Forums > Apps and Windows > Windows

 
Reply
 
Thread Tools Rate Thread Display Modes
Old 01-23-2018, 12:10 PM   #1
AC5FF
Newly Registered User
 
AC5FF's Avatar
 
Join Date: Apr 2004
Location: Rapid City SD
Posts: 552
Thanks: 10
Thanked 1 Time in 1 Post
AC5FF is on a distinguished road
Windows 7 Scheduled Tasks

I've set up a scheduled task to run an EXE every morning at 9am but it does not seem to want to work.

I set up the task using the computer's ADMIN account - not my personal log in because I want this to run every day, regardless of if I am at work or not.

Under Security Options for the task; I've set it to "Run whether user is logged in or not"

Leaving it like that the task never really runs. If I log in and look at the task tomorrow it'll say 'running' and never stop unless I stop it. The EXE file never starts. Same thing will happen if I choose to run that task now.

If I change the security to 'Run only when user is logged in' the task works flawlessly - as long as I'm logged in. If I'm not; the task will not run.

Any ideas on what may be happening or how to fix it?

Thanks!

__________________
If flying were the language of men than soaring would be his poetry.
AC5FF is offline   Reply With Quote
Old 01-23-2018, 12:54 PM   #2
pbaldy
Wino Moderator
 
pbaldy's Avatar
 
Join Date: Aug 2003
Location: Nevada, USA
Posts: 32,808
Thanks: 12
Thanked 4,018 Times in 3,955 Posts
pbaldy is a splendid one to behold pbaldy is a splendid one to behold pbaldy is a splendid one to behold pbaldy is a splendid one to behold pbaldy is a splendid one to behold pbaldy is a splendid one to behold pbaldy is a splendid one to behold
Re: Windows 7 Scheduled Tasks

One option would be to leave the computer logged in but locked.
__________________
Paul
Microsoft Access MVP

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
pbaldy is offline   Reply With Quote
Old 01-23-2018, 01:19 PM   #3
AC5FF
Newly Registered User
 
AC5FF's Avatar
 
Join Date: Apr 2004
Location: Rapid City SD
Posts: 552
Thanks: 10
Thanked 1 Time in 1 Post
AC5FF is on a distinguished road
Re: Windows 7 Scheduled Tasks

I thought about that - but i wanted to be sure it continued to run if say the computer gets reset over a long weekend.
I'm running another test tonight - if that doesn't work I may resort to this method. And on the odd times I get logged out than I'll just have to do some manual updating/etc.

__________________
If flying were the language of men than soaring would be his poetry.
AC5FF is offline   Reply With Quote
Old 01-23-2018, 01:25 PM   #4
Gasman
Enthusiastic Amateur
 
Join Date: Sep 2011
Location: Swansea, South Wales,UK
Posts: 3,596
Thanks: 387
Thanked 620 Times in 601 Posts
Gasman has a spectacular aura about Gasman has a spectacular aura about Gasman has a spectacular aura about
Re: Windows 7 Scheduled Tasks

I'll look at my settings in work tomorrow.
I have backups running in the evening on win10, but it should be the same.
What happens if you run the task manually from the scheduler?
__________________
Access novice. Sometimes trying to give something back.
Access 2007


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Gasman is offline   Reply With Quote
Old 01-23-2018, 01:42 PM   #5
AC5FF
Newly Registered User
 
AC5FF's Avatar
 
Join Date: Apr 2004
Location: Rapid City SD
Posts: 552
Thanks: 10
Thanked 1 Time in 1 Post
AC5FF is on a distinguished road
Re: Windows 7 Scheduled Tasks

Running the task manually from the scheduler:
If I have 'run only when logged in' selected the task runs fine
if I have 'run whether user is logged in or not' the task does not run at all.
__________________
If flying were the language of men than soaring would be his poetry.
AC5FF is offline   Reply With Quote
Old 01-24-2018, 01:30 AM   #6
Gasman
Enthusiastic Amateur
 
Join Date: Sep 2011
Location: Swansea, South Wales,UK
Posts: 3,596
Thanks: 387
Thanked 620 Times in 601 Posts
Gasman has a spectacular aura about Gasman has a spectacular aura about Gasman has a spectacular aura about
Re: Windows 7 Scheduled Tasks

Hmm, I have mine running under the main user for the PC and whether logged on or not.
The PC acts as a server, and noone is ever logged on directly. I logon with Remote Desktop to monitor it.
Have you tried the SYSTEM account?

However going into it today, I have a log that says completed and then another that says it was terminated about 5 hours later. I just check the sync log and know that it took a few attempts to get it running daily. It would run every 3 days previously. I have another PC on which it does that, but that if fine for that PC.
I believe the 3 days is something to do with the Terminate after period option which defaults to 3 days.

Sorry I couldn't help.
__________________
Access novice. Sometimes trying to give something back.
Access 2007


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Gasman is offline   Reply With Quote
Old 01-24-2018, 10:47 AM   #7
Gasman
Enthusiastic Amateur
 
Join Date: Sep 2011
Location: Swansea, South Wales,UK
Posts: 3,596
Thanks: 387
Thanked 620 Times in 601 Posts
Gasman has a spectacular aura about Gasman has a spectacular aura about Gasman has a spectacular aura about
Re: Windows 7 Scheduled Tasks

Try deleting and re entering the task.?
I found that only on my third attempt with exactly the same details would the task run every night as it is meant to.
Sounds illogical, but I'm just happy it is now working as it should.


__________________
Access novice. Sometimes trying to give something back.
Access 2007


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Gasman is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Scheduled task on windows server TDZ7200 Modules & VBA 2 04-23-2015 05:50 AM
Launch Access from scheduled tasks without interactive login? dpelizzari Modules & VBA 7 09-06-2013 12:04 PM
Scheduled Tasks problems BenH General 3 09-28-2011 06:07 AM
Access2003 and Windows Scheduler (Scheduled Tasks) muskilh General 6 09-15-2009 10:30 PM
duplicate emails sent when using MS's Scheduled Tasks sjl Forms 4 04-21-2009 10:09 AM




All times are GMT -8. The time now is 02:05 PM.


Microsoft Access Help
General
Tables
Queries
Forms
Reports
Macros
Modules & VBA
Theory & Practice
Access FAQs
Code Repository
Sample Databases
Video Tutorials

Featured Forum post


Sponsored Links


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
(c) copyright 2017 Access World