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”?
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
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
-
4 Strange Facts About Тостер За Сандвичи (Awaiting moderation)
by
rosalinepettey6
22 minutes ago -
Windows 11 blocks Chrome 137.0.7151.68, 137.0.7151.69
by
Alex5723
8 hours, 45 minutes ago -
Are Macs immune?
by
Susan Bradley
6 hours, 9 minutes ago -
HP Envy and the Function keys
by
CWBillow
11 hours, 51 minutes ago -
Microsoft : Removal of unwanted drivers from Windows Update
by
Alex5723
20 hours, 2 minutes ago -
MacOS 26 beta 1 dropped support for Firewire 400/800
by
Alex5723
20 hours, 19 minutes ago -
Unable to update to version 22h2
by
04om
7 hours, 2 minutes ago -
Windows 11 Insider Preview Build 26100.4482 (24H2) released to Release Preview
by
joep517
1 day, 3 hours ago -
Windows 11 Insider Preview build 27881 released to Canary
by
joep517
1 day, 3 hours ago -
Very Quarrelsome Taskbar!
by
CWBillow
13 hours, 40 minutes ago -
Move OneNote Notebook OFF OneDrive and make it local
by
CWBillow
1 day, 16 hours ago -
Microsoft 365 to block file access via legacy auth protocols by default
by
Alex5723
1 day, 5 hours ago -
Is your battery draining?
by
Susan Bradley
3 hours, 29 minutes ago -
The 16-billion-record data breach that no one’s ever heard of
by
Alex5723
3 hours, 52 minutes ago -
Weasel Words Rule Too Many Data Breach Notifications
by
Nibbled To Death By Ducks
1 day, 20 hours ago -
Windows Command Prompt and Powershell will not open as Administrator
by
Gordski
1 day, 4 hours ago -
Intel Management Engine (Intel ME) Security Issue
by
PL1
1 day, 4 hours ago -
Old Geek Forced to Update. Buy a Win 11 PC? Yikes! How do I cope?
by
RonE22
21 hours, 35 minutes ago -
National scam day
by
Susan Bradley
4 hours, 1 minute ago -
macOS Tahoe 26 the end of the road for Intel Macs, OCLP, Hackintosh
by
Alex5723
1 day ago -
Cyberattack on some Washington Post journalists’ email accounts
by
Bob99
2 days, 21 hours ago -
Tools to support internet discussions
by
Kathy Stevens
1 day, 10 hours ago -
How get Group Policy to allow specific Driver to download?
by
Tex265
2 days, 12 hours ago -
AI is good sometimes
by
Susan Bradley
3 days, 4 hours ago -
Mozilla quietly tests Perplexity AI as a New Firefox Search Option
by
Alex5723
2 days, 18 hours ago -
Perplexity Pro free for 12 mos for Samsung Galaxy phones
by
Patricia Grace
4 days, 5 hours ago -
June KB5060842 update broke DHCP server service
by
Alex5723
4 days, 3 hours ago -
AMD Ryzen™ Chipset Driver Release Notes 7.06.02.123
by
Alex5723
4 days, 7 hours ago -
Excessive security alerts
by
WSSebastian42
2 days, 22 hours ago -
* CrystalDiskMark may shorten SSD/USB Memory life
by
Alex5723
4 days, 17 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.