![]() |
MS-DEFCON 2:
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it.
|
-
Why didn’t my task happen?
Home › Forums › AskWoody support › Windows › Windows 10 › Windows 10 version 2004 – May 2020 Update › Why didn’t my task happen?
Tagged: scheduler
- This topic has 16 replies, 6 voices, and was last updated 1 month, 3 weeks ago.
Viewing 11 reply threads-
AuthorPosts
-
-
November 27, 2020 at 6:03 am #2315221
berniec
AskWoody PlusI’m looking at the task scheduler window and it has my task listed: 3:58AM, 11/17, one time. I entered the task yesterday morning. But… the task didn’t happen. It says it is enabled and all the fields are correct. But 3:58 came and went this morning and it didn’t run and I can’t figure out why not. This with win10 2004. Are there other things I need to do to make the task “go” beyond the simple settings for a “basic task”?
-
November 27, 2020 at 6:15 am #2315222
-
November 27, 2020 at 6:18 am #2315224
berniec
AskWoody Plus11/17 was 10 days ago, not this morning. Is the task set for 11/10 or 11/27?
Sorry — I mistyped — it was, indeed, scheduled for 11/27. [this morning]
-
November 27, 2020 at 6:31 am #2315226
-
November 27, 2020 at 9:02 am #2315247
-
November 28, 2020 at 5:58 am #2315415
berniec
AskWoody PlusI’ve attached the entry from the scheduler that I found this morning. I noticed that it had a “last run time” of the right time and the last run result is (0x1). Its settings are “run only when user is logged in” . Trigger one time The action is “shutdown” with arguments /r/f. no conditions.
Attachments:
You must be logged in to access attached files.
-
November 28, 2020 at 9:25 am #2315431
berniec
AskWoody PlusLooks like I’ve found the problem: 0x1 is an *error* code. So the scheduler tried to run my task and it failed. The only thing I can figure is that perhaps it can’t find “shutdown” — it runs just fine from an unprivileged winkey-R. It must be that the PATH when running task manager isn’t the normal PATH. SO.. for tonight’s try I’m going to try specifying a full path. So I did
c: cd windows
dir /s shutdown.exeand I found four copies of it:
system32
syswow64
WinSxS\amd64_microsoft-windows-shutdown-event-tracker_31bf3856ad364e35_10.0.19041.1_none_b8c5253467557e69
WinSxS\wow64_microsoft-windows-shutdown-event-tracker_31bf3856ad364e35_10.0.19041.1_none_c319cf869bb64064I’m guessing that the system32 one is the right one nor winsxs [[whatever *that* is]. So I’ll edit the “program” to be c:\system32\shutdown and I bet it’ll run tomorrow morning.
I wonder what the PATH in task scheduler is. I guess I can do a time batch file:
echo %PATH% >d:\desktop\taskpath.txt
and see what I get. -
November 28, 2020 at 9:40 am #2315435
berniec
AskWoody Plus-
November 28, 2020 at 3:12 pm #2315521
Bob99
AskWoody PlusLook in the properties of the task (specifically, the “Settings” tab) to see if it can be manually run (“Allow task to be run on demand” check box is checked). If so, then run it by using the “Run” command with the green arrow next to it on the right side of the Task Manager window.
Doing so will allow you to see the “results” sooner than tomorrow morning. Sounds like if you’re successful, you’ll have to push the power button to start your computer because of the “shutdown” command you’ve mentioned.
If you can run it manually as stated above, let us know what the results are by posting back here.
-
November 28, 2020 at 4:48 pm #2315546
berniec
AskWoody PlusTwo things: first, I’ll do that tomorrow morning *IF* the batch file doesn’t run tomorrow morning. I’m busy this evening and don’t want to reboot my system.
I *think* I got the command right: /r/f ought to force the shutdown and reboot. So I’m hoping to see my system up, but having been restarted tomorrow. I’m betting that putting the full path on shutdown will have fixed it.
-
-
November 28, 2020 at 3:22 pm #2315522
zat_so
AskWoody Plus-
November 28, 2020 at 4:53 pm #2315548
berniec
AskWoody PlusI could do that but.. if my guess [about need the full path to the program to run] is correct then that wouldn’t help: I already know that running “shutdown” directly from a command prompt or a batch file works [on my {slow} laptop I have a “hibernate.bat” file that just does “shutdown /h” and it works perfectdly.
So I think that that’s the other way to deal with this problem: just make a one-line batch file [shutdown /r/f] and run *that* from task scheduler. The nice part about doing it that way is that I won’t have to remember the proper path and switches for shutdown: I can create “restart.bat” and whenever I need to reboot the system schedule *that* for 3AM.
-
-
-
November 28, 2020 at 11:43 pm #2315611
-
November 29, 2020 at 5:38 am #2315647
berniec
AskWoody Plus-
November 30, 2020 at 2:17 am #2315830
-
-
November 29, 2020 at 7:51 am #2315659
-
November 30, 2020 at 8:07 am #2315877
berniec
AskWoody PlusMystery solved!! I made a batch file:
echo System Restarted >d:\restart.log
shutdown /r /f 2>&1 >>d:\restart.logand when it didn’t work I looked at the log and it gave me the answer [actually fixed , as above] and it then worked perfectly. The solution: shutdown won’t accept concatenated arguments. I really thought you could do that and so my original stuff used “shutdown /f/r” and that throws an error! when I put a space between the arguments [as above] it all worked.
-
-
AuthorPosts
Viewing 11 reply threads -
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments. Click here for details and to sign up.
Search The Lounge
Recent Replies
Alex5723 on Privacy : Signal, Apple’s own iMessage, WhatsApp and Facebook Messenger.
7 minutes agoFred on Aren't these the greatest performances of classical music?
10 minutes agoPKCano on How to put a picture ("Avatar") on your replies
23 minutes agoAlex5723 on User Feed Synchronization – Disable/Delete Task?
1 hour, 33 minutes agoAlex5723 on Adobe Flash Not working for School test
1 hour, 44 minutes agoRick Corbett on User Feed Synchronization – Disable/Delete Task?
2 hours, 3 minutes agoWSChrissue on Adobe Flash Not working for School test
2 hours, 7 minutes agodoriel on Windows 10X and its purpose
2 hours, 27 minutes agoanonymous on Permission on public desktop gets reset
3 hours, 13 minutes agoPaul T on Doesn’t like external FAT32 HDD
5 hours, 2 minutes agoPaul T on So I opened up an HP and where’s the hard drive?
5 hours, 31 minutes agoCarl D on So I opened up an HP and where’s the hard drive?
5 hours, 35 minutes agoGoneToPlaid on Hard Drive at 100% usage
5 hours, 38 minutes agoanonymous on Accessing Old Laptop HD
5 hours, 46 minutes agoanonymous on Why won’t Task Scheduler launch Office product
5 hours, 47 minutes agoPaul T on So I opened up an HP and where’s the hard drive?
5 hours, 50 minutes agoMichael Austin on Which version of MS Office should we buy and where can we get it?
6 hours, 15 minutes agoMichael Austin on Need a Great Rules Add-in for Outlook 2019
6 hours, 22 minutes agotechweenie on So I opened up an HP and where’s the hard drive?
6 hours, 46 minutes agoGoneToPlaid on So I opened up an HP and where’s the hard drive?
6 hours, 48 minutes agoanonymous on So I opened up an HP and where’s the hard drive?
7 hours, 16 minutes agoDrcard:)) on Why won’t Task Scheduler launch Office product
7 hours, 24 minutes agodmitriy1980 on Hard Drive at 100% usage
7 hours, 33 minutes agoTom on So I opened up an HP and where’s the hard drive?
8 hours, 11 minutes agoSusan Bradley on Accessing Old Laptop HD
8 hours, 14 minutes agoSusan Bradley on How to STOP Outlook Hotmail config forcing signin to Office 2019
8 hours, 16 minutes agoBob99 on Hard Drive at 100% usage
8 hours, 18 minutes agoSusan Bradley on Which version of MS Office should we buy and where can we get it?
8 hours, 20 minutes agoanonymous on Susan recommending version 2004
8 hours, 24 minutes agoanonymous on So I opened up an HP and where’s the hard drive?
8 hours, 25 minutes ago
Recent Topics
-
Linux is now completely usable on the Mac mini M1
14 hours, 46 minutes ago
-
User Feed Synchronization – Disable/Delete Task?
1 hour, 34 minutes ago
-
AV Alert from JetAudio Plus
16 hours, 59 minutes ago
-
System Restore Stopped Working
18 hours, 46 minutes ago
-
Malwarebytes was targeted by SolarWinds hackers too
1 day, 3 hours ago
-
So I opened up an HP and where’s the hard drive?
5 hours, 32 minutes ago
-
Which version of MS Office should we buy and where can we get it?
6 hours, 15 minutes ago
-
Fiber optic not available; options please
11 hours, 13 minutes ago
-
Best W10-Pro updater program ?
1 day, 2 hours ago
-
Accessing Old Laptop HD
5 hours, 47 minutes ago
-
DNSpooq lets attackers poison DNS cache – A Patch
1 day, 15 hours ago
-
Nitro data breach – what does it mean to me?
1 day, 3 hours ago
-
Check Point : “FreakOut” malware exploits new Linux vulnerabilities
1 day, 16 hours ago
-
How to STOP Outlook Hotmail config forcing signin to Office 2019
8 hours, 17 minutes ago
-
Permission on public desktop gets reset
1 day, 17 hours ago
-
Surface Pro 4 & Win v2004 update fail
1 day, 16 hours ago
-
Extra USB Sound driver?
1 day, 2 hours ago
-
PNY Flash Drive Problem
13 hours, 39 minutes ago
-
Windows 10 bug crashes your PC when you access this location
2 days, 16 hours ago
-
Doesn’t like external FAT32 HDD
5 hours, 3 minutes ago
-
Why won’t Task Scheduler launch Office product
7 hours, 25 minutes ago
-
Susan recommending version 2004
8 hours, 25 minutes ago
-
Replace Images for Text in Word
2 days, 18 hours ago
-
Windows 10 internet connection freezes
2 days, 1 hour ago
-
Windows Defender In Win 10 Concern
19 hours, 24 minutes ago
-
Laptop with home and work networks
11 hours, 35 minutes ago
-
Top 40+ iOS 14 Tips and Tricks
3 days ago
-
What Linux is and why it has persisted
12 hours, 47 minutes ago
-
Find the cable modem that’s just right for your ISP
8 hours, 44 minutes ago
-
Four GB of RAM vanishes … but then reappears
11 hours, 53 minutes ago
Search for Topics
Recent blog posts
- So I opened up an HP and where’s the hard drive?
- What Linux is and why it has persisted
- Find the cable modem that’s just right for your ISP
- Four GB of RAM vanishes … but then reappears
- Wow! Even more Office updates!
- Giving you the choice
- Tasks for the weekend – January 16, 2021
- Zero day Windows 10 bug
Key Links
Copyright © 2004 – 2021 AskWoody Tech LLC. All rights reserved.