I’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”?
![]() |
There are isolated problems with current patches, but they are well-known and documented on this site. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
Why didn’t my task happen?
Home » Forums » AskWoody support » Windows » Windows 10 » Windows 10 versions – no longer supported » Windows 10 version 2004 – May 2020 Update » Why didn’t my task happen?
- This topic has 17 replies, 6 voices, and was last updated 4 years, 6 months ago.
Tags: scheduler
Viewing 10 reply threadsAuthorReplies-
PKCano
Manager -
berniec
AskWoody PlusNovember 27, 2020 at 6:18 am #231522411/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]
-
Paul T
AskWoody MVP -
cyberSAR
AskWoody Plus -
berniec
AskWoody PlusNovember 28, 2020 at 5:58 am #2315415I’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.
-
berniec
AskWoody PlusNovember 28, 2020 at 9:25 am #2315431Looks 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. -
berniec
AskWoody PlusNovember 28, 2020 at 9:40 am #2315435 -
Bob99
AskWoody MVPNovember 28, 2020 at 3:12 pm #2315521Look 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.
-
berniec
AskWoody PlusNovember 28, 2020 at 4:48 pm #2315546Two 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.
-
-
-
zat_so
AskWoody Plus -
berniec
AskWoody PlusNovember 28, 2020 at 4:53 pm #2315548I 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.
-
Paul T
AskWoody MVPberniec
AskWoody Plus-
Paul T
AskWoody MVP
cyberSAR
AskWoody PlusNovember 29, 2020 at 7:51 am #2315659berniec
AskWoody PlusNovember 30, 2020 at 8:07 am #2315877Mystery 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.
Viewing 10 reply threads -

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.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, 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.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
CD/DVD drive is no longer recognized
by
WSCape Sand
4 hours, 34 minutes ago -
Windows 11 24H2 Default Apps stuck on Edge and Adobe Photoshop
by
MikeBravo
7 hours, 24 minutes ago -
North Face and Cartier customer data stolen in cyber attacks
by
Alex5723
5 hours, 29 minutes ago -
What is wrong with simple approach?
by
WSSpoke36
5 hours, 21 minutes ago -
Microsoft-Backed Builder.ai Set for Bankruptcy After Cash Seized
by
Alex5723
16 hours, 54 minutes ago -
Location, location, location
by
Susan Bradley
3 hours, 56 minutes ago -
Cannot get a task to run a restore point
by
CWBillow
18 hours, 20 minutes ago -
Frustrating search behavior with Outlook
by
MrJimPhelps
9 hours, 3 minutes ago -
June 2025 Office non-Security Updates
by
PKCano
1 day, 5 hours ago -
Secure Boot Update Fails after KB5058405 Installed
by
SteveIT
1 hour, 29 minutes ago -
Firefox Red Panda Fun Stuff
by
Lars220
1 day, 5 hours ago -
How start headers and page numbers on page 3?
by
Davidhs
1 day, 15 hours ago -
Attack on LexisNexis Risk Solutions exposes data on 300k +
by
Nibbled To Death By Ducks
18 hours, 7 minutes ago -
Windows 11 Insider Preview build 26200.5622 released to DEV
by
joep517
2 days ago -
Windows 11 Insider Preview build 26120.4230 (24H2) released to BETA
by
joep517
2 days ago -
MS Excel 2019 Now Prompts to Back Up With OneDrive
by
lmacri
1 day, 13 hours ago -
Firefox 139
by
Charlie
1 day, 6 hours ago -
Who knows what?
by
Will Fastie
8 hours, 47 minutes ago -
My top ten underappreciated features in Office
by
Peter Deegan
2 days ago -
WAU Manager — It’s your computer, you are in charge!
by
Deanna McElveen
3 hours, 43 minutes ago -
Misbehaving devices
by
Susan Bradley
20 hours, 34 minutes ago -
.NET 8.0 Desktop Runtime (v8.0.16) – Windows x86 Installer
by
WSmeyerbos
3 days, 6 hours ago -
Neowin poll : What do you plan to do on Windows 10 EOS
by
Alex5723
5 hours, 39 minutes ago -
May 31, 2025—KB5062170 (OS Builds 22621.5415 and 22631.5415 Out-of-band
by
Alex5723
3 days, 5 hours ago -
Discover the Best AI Tools for Everything
by
Alex5723
2 days, 4 hours ago -
Edge Seems To Be Gaining Weight
by
bbearren
2 days, 19 hours ago -
Rufus is available from the MSFT Store
by
PL1
3 days, 3 hours ago -
Microsoft : Ending USB-C® Port Confusion
by
Alex5723
4 days, 6 hours ago -
KB5061768 update for Intel vPro processor
by
drmark
2 days, 6 hours ago -
Outlook 365 classic has exhausted all shared resources
by
drmark
2 days, 5 hours ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.