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, 4 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
-
TUT For Private Llama LLM, Local Installation and Isolated from the Internet.
by
bbearren
2 hours, 37 minutes ago -
Upgrade from Windows 10 to 11
by
Holdsworth8
5 hours, 1 minute ago -
Microsoft : AI-powered deception: Emerging fraud threats and countermeasures
by
Alex5723
7 hours, 51 minutes ago -
0patch
by
WSjcgc50
4 hours, 19 minutes ago -
Devices might encounter blue screen exception with the recent Windows updates
by
Susan Bradley
1 hour, 13 minutes ago -
Windows 11 Insider Preview Build 22631.5261 (23H2) released to Release Preview
by
joep517
10 hours, 50 minutes ago -
Problem opening image attachments
by
RobertG
12 hours, 25 minutes ago -
advice for setting up a new windows computer
by
routtco1001
1 day, 3 hours ago -
It’s Identity Theft Day!
by
Susan Bradley
7 hours, 27 minutes ago -
Android 15 require minimum 32GB of storage
by
Alex5723
1 day, 7 hours ago -
Mac Mini 2018, iPhone 6s 2015 Are Now Vintage
by
Alex5723
1 day, 8 hours ago -
Hertz says hackers stole customer credit card and driver’s license data
by
Alex5723
1 day, 8 hours ago -
Firefox became sluggish
by
Rick Corbett
1 day, 5 hours ago -
Windows 10 Build 19045.5794 (22H2) to Release Preview Channel
by
joep517
1 day, 12 hours ago -
Windows 11 Insider Preview Build 22635.5235 (23H2) released to BETA
by
joep517
1 day, 13 hours ago -
A Funny Thing Happened on the Way to the Forum
by
bbearren
10 hours, 17 minutes ago -
Download speeds only 0.3Mbps after 24H2 upgrade on WiFi and Ethernet
by
John
4 hours, 51 minutes ago -
T-Mobile 5G Wireless Internet
by
WSmmi16
10 hours, 58 minutes ago -
Clock missing above calendar in Windows 10
by
WSCape Sand
12 hours, 10 minutes ago -
Formula to Calculate Q1, Q2, Q3, or Q4 of the Year?
by
WSJon5
2 days, 3 hours ago -
The time has come for AI-generated art
by
Catherine Barrett
1 day, 7 hours ago -
Hackers are using two-factor authentication to infect you
by
B. Livingston
1 day, 17 hours ago -
23 and you
by
Max Stul Oppenheimer
2 days ago -
April’s deluge of patches
by
Susan Bradley
4 hours, 43 minutes ago -
Windows 11 Windows Updater question
by
Tex265
5 hours, 4 minutes ago -
Key, Key, my kingdom for a Key!
by
RetiredGeek
3 days, 9 hours ago -
Registry Patches for Windows 10
by
Drcard:))
3 days, 14 hours ago -
Cannot get line length to NOT wrap in Outlining in Word 365
by
CWBillow
2 days, 20 hours ago -
DDU (Display Driver Uninstaller) updates
by
Alex5723
2 days, 6 hours ago -
Align objects on a OneNote page
by
CWBillow
3 days, 19 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.