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, 5 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 MVP -
berniec
AskWoody Plus -
Paul T
AskWoody MVP
-
-
cyberSAR
AskWoody PlusNovember 29, 2020 at 7:51 am #2315659 -
berniec
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
-
Login screen icon
by
CWBillow
1 hour, 51 minutes ago -
AI coming to everything
by
Susan Bradley
3 hours, 28 minutes ago -
Mozilla : Pocket shuts down July 8, 2025, Fakespot shuts down on July 1, 2025
by
Alex5723
5 hours, 38 minutes ago -
No Screen TurnOff???
by
CWBillow
6 hours ago -
Identify a dynamic range to then be used in another formula
by
BigDaddy07
6 hours, 33 minutes ago -
InfoStealer Malware Data Breach Exposed 184 Million Logins and Passwords
by
Alex5723
18 hours, 10 minutes ago -
How well does your browser block trackers?
by
n0ads
4 hours, 27 minutes ago -
You can’t handle me
by
Susan Bradley
8 hours, 52 minutes ago -
Chrome Can Now Change Your Weak Passwords for You
by
Alex5723
3 hours, 56 minutes ago -
Microsoft: Over 394,000 Windows PCs infected by Lumma malware, affects Chrome..
by
Alex5723
1 day, 5 hours ago -
Signal vs Microsoft’s Recall ; By Default, Signal Doesn’t Recall
by
Alex5723
9 hours, 2 minutes ago -
Internet Archive : This is where all of The Internet is stored
by
Alex5723
1 day, 5 hours ago -
iPhone 7 Plus and the iPhone 8 on Vantage list
by
Alex5723
1 day, 6 hours ago -
Lumma malware takedown
by
EyesOnWindows
18 hours, 17 minutes ago -
“kill switches” found in Chinese made power inverters
by
Alex5723
1 day, 14 hours ago -
Windows 11 – InControl vs pausing Windows updates
by
Kathy Stevens
1 day, 14 hours ago -
Meet Gemini in Chrome
by
Alex5723
1 day, 18 hours ago -
DuckDuckGo’s Duck.ai added GPT-4o mini
by
Alex5723
1 day, 18 hours ago -
Trump signs Take It Down Act
by
Alex5723
2 days, 2 hours ago -
Do you have a maintenance window?
by
Susan Bradley
7 hours, 36 minutes ago -
Freshly discovered bug in OpenPGP.js undermines whole point of encrypted comms
by
Nibbled To Death By Ducks
1 day, 5 hours ago -
Cox Communications and Charter Communications to merge
by
not so anon
2 days, 6 hours ago -
Help with WD usb driver on Windows 11
by
Tex265
14 hours, 38 minutes ago -
hibernate activation
by
e_belmont
2 days, 15 hours ago -
Red Hat Enterprise Linux 10 with AI assistant
by
Alex5723
2 days, 18 hours ago -
Windows 11 Insider Preview build 26200.5603 released to DEV
by
joep517
2 days, 22 hours ago -
Windows 11 Insider Preview build 26120.4151 (24H2) released to BETA
by
joep517
2 days, 22 hours ago -
Fixing Windows 24H2 failed KB5058411 install
by
Alex5723
1 day, 18 hours ago -
Out of band for Windows 10
by
Susan Bradley
3 days, 2 hours ago -
Giving UniGetUi a test run.
by
RetiredGeek
3 days, 9 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.