Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Scheduled Task Missing - Yet partially there - How I fixed it  (Read 7468 times)

0 Members and 1 Guest are viewing this topic.

DaveLembke

    Topic Starter


    Sage
  • Thanked: 662
  • Certifications: List
  • Computer: Specs
  • Experience: Expert
  • OS: Windows 10
Scheduled Task Missing - Yet partially there - How I fixed it
« on: January 21, 2018, 11:22:48 AM »
So I went to add a scheduled task on a Windows 7 Home Premium system this afternoon and was running under a user level account. The user level account has access to running batch files and exe's so I didnt think logging on as system admin was necessary.

However after creating the scheduled task it complained about the account not being part of a group that allows for scheduling of tasks and suggested that I add the ability for the user account to be able to do this. So at that point I figured ok I might as well logon as system admin and have the scheduled task run from that level.

However now when making a scheduled task with all the same info including task name, it complains that that already exists. When looking at what schedule tasks were on the system, it wasnt listed even when using refresh.

I decided to look online and see what is going on. As for I cant have a partially created orphan scheduled task out there that might hang up the system when it runs at 2am because it wasnt happy with the privilege restriction of the user account that by which it was created from.

Found this article here: https://social.technet.microsoft.com/Forums/office/en-US/0f985ec9-51a5-4ebe-9b83-aec746f18223/where-are-my-custom-scheduled-tasks-they-disappeared-from-all-2008-r2-server?forum=winserverManagement

The scary thing about this issue is that the scheduled task was created but not completed. When running a query for it it was no where to be found such as here:

Code: [Select]
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\admin>schtasks /query

Folder: \
TaskName                                 Next Run Time          Status
======================================== ====================== ===============
CCleanerSkipUAC                          N/A                    Ready
CLMLSvc_P2G8                             N/A                    Running
CLVDLauncher                             N/A                    Ready
User_Feed_Synchronization-{EBE7246C-C4F9 1/22/2018 12:56:19 AM  Ready

Folder: \Hewlett-Packard
TaskName                                 Next Run Time          Status
======================================== ====================== ===============
INFO: There are no scheduled tasks presently available at your access level.

Folder: \Microsoft
TaskName                                 Next Run Time          Status
======================================== ====================== ===============
INFO: There are no scheduled tasks presently available at your access level.

Folder: \Microsoft\Windows
TaskName                                 Next Run Time          Status
======================================== ====================== ===============
INFO: There are no scheduled tasks presently available at your access level.

Folder: \Microsoft\Windows\Active Directory Rights Management Services Client
TaskName                                 Next Run Time          Status
======================================== ====================== ===============
AD RMS Rights Policy Template Management Disabled
AD RMS Rights Policy Template Management N/A                    Ready

Folder: \Microsoft\Windows\Application Experience
TaskName                                 Next Run Time          Status
======================================== ====================== ===============
Microsoft Compatibility Appraiser        1/22/2018 4:22:48 AM   Ready
ProgramDataUpdater                       1/22/2018 12:56:39 AM  Ready

Folder: \Microsoft\Windows\Autochk
TaskName                                 Next Run Time          Status
======================================== ====================== ===============
Proxy                                    N/A                    Ready

Folder: \Microsoft\Windows\CertificateServicesClient
TaskName                                 Next Run Time          Status
======================================== ====================== ===============
UserTask                                 N/A                    Ready
UserTask-Roam                            Disabled

Folder: \Microsoft\Windows\Customer Experience Improvement Program
TaskName                                 Next Run Time          Status
======================================== ====================== ===============
Consolidator                             1/21/2018 11:00:00 PM  Ready
KernelCeipTask                           1/25/2018 3:30:00 AM   Ready
Uploader                                 N/A                    Ready
UsbCeip                                  1/24/2018 1:30:00 AM   Ready

Folder: \Microsoft\Windows\Defrag
TaskName                                 Next Run Time          Status
======================================== ====================== ===============
ScheduledDefrag                          1/24/2018 2:32:17 AM   Ready

Folder: \Microsoft\Windows\Diagnosis
TaskName                                 Next Run Time          Status
======================================== ====================== ===============
Scheduled                                1/28/2018 1:00:00 AM   Ready

Folder: \Microsoft\Windows\DiskDiagnostic
TaskName                                 Next Run Time          Status
======================================== ====================== ===============
Microsoft-Windows-DiskDiagnosticDataColl Disabled
Microsoft-Windows-DiskDiagnosticResolver Disabled

Folder: \Microsoft\Windows\Location
TaskName                                 Next Run Time          Status
======================================== ====================== ===============
Notifications                            N/A                    Ready

Folder: \Microsoft\Windows\Maintenance
TaskName                                 Next Run Time          Status
======================================== ====================== ===============
WinSAT                                   1/28/2018 1:00:00 AM   Ready

Folder: \Microsoft\Windows\Media Center
TaskName                                 Next Run Time          Status
======================================== ====================== ===============
ActivateWindowsSearch                    N/A                    Ready
ConfigureInternetTimeService             N/A                    Ready
DispatchRecoveryTasks                    N/A                    Ready
ehDRMInit                                N/A                    Ready
InstallPlayReady                         N/A                    Ready
mcupdate                                 N/A                    Ready
MediaCenterRecoveryTask                  N/A                    Ready
ObjectStoreRecoveryTask                  N/A                    Ready
OCURActivate                             N/A                    Ready
OCURDiscovery                            N/A                    Ready
PBDADiscovery                            N/A                    Ready
PBDADiscoveryW1                          N/A                    Ready
PBDADiscoveryW2                          N/A                    Ready
PeriodicScanRetry                        Disabled
PvrRecoveryTask                          N/A                    Ready
PvrScheduleTask                          N/A                    Ready
RecordingRestart                         Disabled
RegisterSearch                           N/A                    Ready
ReindexSearchRoot                        N/A                    Ready
SqlLiteRecoveryTask                      N/A                    Ready
UpdateRecordPath                         N/A                    Ready

Folder: \Microsoft\Windows\MemoryDiagnostic
TaskName                                 Next Run Time          Status
======================================== ====================== ===============
CorruptionDetector                       N/A                    Ready
DecompressionFailureDetector             N/A                    Ready

Folder: \Microsoft\Windows\MobilePC
TaskName                                 Next Run Time          Status
======================================== ====================== ===============
HotStart                                 N/A                    Ready

Folder: \Microsoft\Windows\MUI
TaskName                                 Next Run Time          Status
======================================== ====================== ===============
LPRemove                                 N/A                    Ready

Folder: \Microsoft\Windows\Multimedia
TaskName                                 Next Run Time          Status
======================================== ====================== ===============
SystemSoundsService                      N/A                    Running

Folder: \Microsoft\Windows\NetTrace
TaskName                                 Next Run Time          Status
======================================== ====================== ===============
GatherNetworkInfo                        N/A                    Ready

Folder: \Microsoft\Windows\PLA
TaskName                                 Next Run Time          Status
======================================== ====================== ===============
INFO: There are no scheduled tasks presently available at your access level.

Folder: \Microsoft\Windows\Power Efficiency Diagnostics
TaskName                                 Next Run Time          Status
======================================== ====================== ===============
AnalyzeSystem                            1/30/2018 10:11:05 AM  Ready

Folder: \Microsoft\Windows\RAC
TaskName                                 Next Run Time          Status
======================================== ====================== ===============
RacTask                                  1/21/2018 1:13:14 PM   Ready

Folder: \Microsoft\Windows\Registry
TaskName                                 Next Run Time          Status
======================================== ====================== ===============
RegIdleBackup                            1/28/2018 12:51:00 AM  Ready

Folder: \Microsoft\Windows\Shell
TaskName                                 Next Run Time          Status
======================================== ====================== ===============
WindowsParentalControls                  Disabled
WindowsParentalControlsMigration         Disabled

Folder: \Microsoft\Windows\SideShow
TaskName                                 Next Run Time          Status
======================================== ====================== ===============
AutoWake                                 Disabled
GadgetManager                            N/A                    Ready
SessionAgent                             Disabled               Could not start
SystemDataProviders                      Disabled               Could not start

Folder: \Microsoft\Windows\SystemRestore
TaskName                                 Next Run Time          Status
======================================== ====================== ===============
SR                                       1/22/2018 12:00:00 AM  Ready

Folder: \Microsoft\Windows\Task Manager
TaskName                                 Next Run Time          Status
======================================== ====================== ===============
Interactive                              N/A                    Ready

Folder: \Microsoft\Windows\Tcpip
TaskName                                 Next Run Time          Status
======================================== ====================== ===============
IpAddressConflict1                       N/A                    Ready
IpAddressConflict2                       N/A                    Ready

Folder: \Microsoft\Windows\TextServicesFramework
TaskName                                 Next Run Time          Status
======================================== ====================== ===============
MsCtfMonitor                             N/A                    Running

Folder: \Microsoft\Windows\Time Synchronization
TaskName                                 Next Run Time          Status
======================================== ====================== ===============
SynchronizeTime                          1/28/2018 1:00:00 AM   Ready

Folder: \Microsoft\Windows\WDI
TaskName                                 Next Run Time          Status
======================================== ====================== ===============
ResolutionHost                           N/A                    Running

Folder: \Microsoft\Windows\Windows Error Reporting
TaskName                                 Next Run Time          Status
======================================== ====================== ===============
QueueReporting                           N/A                    Ready

Folder: \Microsoft\Windows\Windows Filtering Platform
TaskName                                 Next Run Time          Status
======================================== ====================== ===============
BfeOnServiceStartTypeChange              N/A                    Ready

Folder: \Microsoft\Windows\Windows Media Sharing
TaskName                                 Next Run Time          Status
======================================== ====================== ===============
UpdateLibrary                            N/A                    Ready

Folder: \Microsoft\Windows\WindowsBackup
TaskName                                 Next Run Time          Status
======================================== ====================== ===============
ConfigNotification                       1/22/2018 10:00:00 AM  Ready

Folder: \Microsoft\Windows\WindowsColorSystem
TaskName                                 Next Run Time          Status
======================================== ====================== ===============
Calibration Loader                       Disabled

Folder: \Microsoft\Windows\Wininet
TaskName                                 Next Run Time          Status
======================================== ====================== ===============
CacheTask                                N/A                    Running

Folder: \Microsoft\Windows Live
TaskName                                 Next Run Time          Status
======================================== ====================== ===============
INFO: There are no scheduled tasks presently available at your access level.

Folder: \Microsoft\Windows Live\SOXE
TaskName                                 Next Run Time          Status
======================================== ====================== ===============
Extractor Definitions Update Task        1/28/2018 1:54:23 PM   Unknown

C:\Users\admin>

In this Microsoft article it pointed me to looking for the task in the system32 folder of Windows under tasks folder, and in there I saw the scheduled task that I tried to set up that failed but by which it said it already exists when trying to create a new task as same name with correct privileges, so it appears that Windows Scheduled Task Manager writes the scheduled task file to c:\windows\system32\tasks prior to confirming that the user actually is allowed to create a scheduled task.  ::) 

So I deleted this file and then went back in as system admin and created the scheduled task and success. And this time its properly registered with the task schedule manager and shows in the query as [ Daily Backup  1/22/2018 2:00:00 AM   Ready ]

Code: [Select]
C:\Users\admin>schtasks /query

Folder: \
TaskName                                 Next Run Time          Status
======================================== ====================== ===============
1014avUpdateInfo                         N/A                    Ready
Adobe Flash Player Updater               1/21/2018 1:22:00 PM   Ready
Antivirus Emergency Update               1/21/2018 2:50:39 PM   Ready
AVG EUpdate Task                         1/25/2018 3:09:46 PM   Ready
CCleanerSkipUAC                          N/A                    Ready
CLMLSvc_P2G8                             N/A                    Running
CLVDLauncher                             N/A                    Ready
Daily Backup                             1/22/2018 2:00:00 AM   Ready
GoogleUpdateTaskMachineCore              1/22/2018 4:03:36 AM   Ready
GoogleUpdateTaskMachineUA                1/21/2018 1:03:37 PM   Ready
RMCreator                                2/4/2018 12:50:34 PM   Ready
User_Feed_Synchronization-{624AB842-0945 1/22/2018 6:37:42 AM   Ready
User_Feed_Synchronization-{6F7301C8-1718 1/21/2018 1:35:19 PM   Ready
User_Feed_Synchronization-{7BD42CC1-8413 1/22/2018 9:09:27 AM   Ready
User_Feed_Synchronization-{EBE7246C-C4F9 1/22/2018 12:56:19 AM  Ready

Folder: \Hewlett-Packard
TaskName                                 Next Run Time          Status
======================================== ====================== ===============
INFO: There are no scheduled tasks presently available at your access level.

Folder: \Hewlett-Packard\HP Support Assistant
TaskName                                 Next Run Time          Status
======================================== ====================== ===============
HP Support Assistant Quick Start         N/A                    Ready
PC Health Analysis                       1/22/2018 8:59:37 AM   Ready
Update Check                             1/23/2018 8:55:26 PM   Ready
WarrantyChecker_backup                   1/21/2018 1:16:04 PM   Unknown
WarrantyChecker_DeviceScan               1/28/2018 11:58:48 AM  Ready

Folder: \Microsoft
TaskName                                 Next Run Time          Status
======================================== ====================== ===============
INFO: There are no scheduled tasks presently available at your access level.

Folder: \Microsoft\Windows
TaskName                                 Next Run Time          Status
======================================== ====================== ===============
INFO: There are no scheduled tasks presently available at your access level.

Folder: \Microsoft\Windows\Active Directory Rights Management Services Client
TaskName                                 Next Run Time          Status
======================================== ====================== ===============
AD RMS Rights Policy Template Management Disabled
AD RMS Rights Policy Template Management N/A                    Ready

Folder: \Microsoft\Windows\Application Experience
TaskName                                 Next Run Time          Status
======================================== ====================== ===============
Microsoft Compatibility Appraiser        1/22/2018 3:59:42 AM   Ready
ProgramDataUpdater                       1/22/2018 1:09:12 AM   Ready

Folder: \Microsoft\Windows\Autochk
TaskName                                 Next Run Time          Status
======================================== ====================== ===============
Proxy                                    N/A                    Ready

Folder: \Microsoft\Windows\CertificateServicesClient
TaskName                                 Next Run Time          Status
======================================== ====================== ===============
UserTask                                 N/A                    Ready
UserTask-Roam                            Disabled

Folder: \Microsoft\Windows\Customer Experience Improvement Program
TaskName                                 Next Run Time          Status
======================================== ====================== ===============
Consolidator                             1/21/2018 11:00:00 PM  Ready
KernelCeipTask                           1/25/2018 3:30:00 AM   Ready
Uploader                                 N/A                    Ready
UsbCeip                                  1/24/2018 1:30:00 AM   Ready

Folder: \Microsoft\Windows\Defrag
TaskName                                 Next Run Time          Status
======================================== ====================== ===============
ScheduledDefrag                          1/24/2018 1:39:08 AM   Ready

Folder: \Microsoft\Windows\Diagnosis
TaskName                                 Next Run Time          Status
======================================== ====================== ===============
Scheduled                                1/28/2018 1:00:00 AM   Ready

Folder: \Microsoft\Windows\DiskDiagnostic
TaskName                                 Next Run Time          Status
======================================== ====================== ===============
Microsoft-Windows-DiskDiagnosticDataColl Disabled
Microsoft-Windows-DiskDiagnosticResolver Disabled

Folder: \Microsoft\Windows\Location
TaskName                                 Next Run Time          Status
======================================== ====================== ===============
Notifications                            N/A                    Ready

Folder: \Microsoft\Windows\Maintenance
TaskName                                 Next Run Time          Status
======================================== ====================== ===============
WinSAT                                   1/28/2018 1:00:00 AM   Ready

Folder: \Microsoft\Windows\Media Center
TaskName                                 Next Run Time          Status
======================================== ====================== ===============
ActivateWindowsSearch                    N/A                    Ready
ConfigureInternetTimeService             N/A                    Ready
DispatchRecoveryTasks                    N/A                    Ready
ehDRMInit                                N/A                    Ready
InstallPlayReady                         N/A                    Ready
mcupdate                                 N/A                    Ready
MediaCenterRecoveryTask                  N/A                    Ready
ObjectStoreRecoveryTask                  N/A                    Ready
OCURActivate                             N/A                    Ready
OCURDiscovery                            N/A                    Ready
PBDADiscovery                            N/A                    Ready
PBDADiscoveryW1                          N/A                    Ready
PBDADiscoveryW2                          N/A                    Ready
PeriodicScanRetry                        Disabled
PvrRecoveryTask                          N/A                    Ready
PvrScheduleTask                          N/A                    Ready
RecordingRestart                         Disabled
RegisterSearch                           N/A                    Ready
ReindexSearchRoot                        N/A                    Ready
SqlLiteRecoveryTask                      N/A                    Ready
UpdateRecordPath                         N/A                    Ready

Folder: \Microsoft\Windows\MemoryDiagnostic
TaskName                                 Next Run Time          Status
======================================== ====================== ===============
CorruptionDetector                       N/A                    Ready
DecompressionFailureDetector             N/A                    Ready

Folder: \Microsoft\Windows\MobilePC
TaskName                                 Next Run Time          Status
======================================== ====================== ===============
HotStart                                 N/A                    Ready

Folder: \Microsoft\Windows\MUI
TaskName                                 Next Run Time          Status
======================================== ====================== ===============
LPRemove                                 N/A                    Ready

Folder: \Microsoft\Windows\Multimedia
TaskName                                 Next Run Time          Status
======================================== ====================== ===============
SystemSoundsService                      N/A                    Running

Folder: \Microsoft\Windows\NetTrace
TaskName                                 Next Run Time          Status
======================================== ====================== ===============
GatherNetworkInfo                        N/A                    Ready

Folder: \Microsoft\Windows\PLA
TaskName                                 Next Run Time          Status
======================================== ====================== ===============
INFO: There are no scheduled tasks presently available at your access level.

Folder: \Microsoft\Windows\Power Efficiency Diagnostics
TaskName                                 Next Run Time          Status
======================================== ====================== ===============
AnalyzeSystem                            1/30/2018 8:23:08 AM   Ready

Folder: \Microsoft\Windows\RAC
TaskName                                 Next Run Time          Status
======================================== ====================== ===============
RacTask                                  1/21/2018 2:00:47 PM   Ready

Folder: \Microsoft\Windows\Registry
TaskName                                 Next Run Time          Status
======================================== ====================== ===============
RegIdleBackup                            1/28/2018 12:02:02 AM  Ready

Folder: \Microsoft\Windows\Shell
TaskName                                 Next Run Time          Status
======================================== ====================== ===============
WindowsParentalControls                  Disabled
WindowsParentalControlsMigration         Disabled

Folder: \Microsoft\Windows\SideShow
TaskName                                 Next Run Time          Status
======================================== ====================== ===============
AutoWake                                 Disabled
GadgetManager                            N/A                    Ready
SessionAgent                             Disabled               Could not start
SystemDataProviders                      Disabled               Could not start

Folder: \Microsoft\Windows\SystemRestore
TaskName                                 Next Run Time          Status
======================================== ====================== ===============
SR                                       1/22/2018 12:00:00 AM  Ready

Folder: \Microsoft\Windows\Task Manager
TaskName                                 Next Run Time          Status
======================================== ====================== ===============
Interactive                              N/A                    Ready

Folder: \Microsoft\Windows\Tcpip
TaskName                                 Next Run Time          Status
======================================== ====================== ===============
IpAddressConflict1                       N/A                    Ready
IpAddressConflict2                       N/A                    Ready

Folder: \Microsoft\Windows\TextServicesFramework
TaskName                                 Next Run Time          Status
======================================== ====================== ===============
MsCtfMonitor                             N/A                    Running

Folder: \Microsoft\Windows\Time Synchronization
TaskName                                 Next Run Time          Status
======================================== ====================== ===============
SynchronizeTime                          1/28/2018 1:00:00 AM   Ready

Folder: \Microsoft\Windows\WDI
TaskName                                 Next Run Time          Status
======================================== ====================== ===============
ResolutionHost                           N/A                    Running

Folder: \Microsoft\Windows\Windows Error Reporting
TaskName                                 Next Run Time          Status
======================================== ====================== ===============
QueueReporting                           N/A                    Ready

Folder: \Microsoft\Windows\Windows Filtering Platform
TaskName                                 Next Run Time          Status
======================================== ====================== ===============
BfeOnServiceStartTypeChange              N/A                    Ready

Folder: \Microsoft\Windows\Windows Media Sharing
TaskName                                 Next Run Time          Status
======================================== ====================== ===============
UpdateLibrary                            N/A                    Ready

Folder: \Microsoft\Windows\WindowsBackup
TaskName                                 Next Run Time          Status
======================================== ====================== ===============
ConfigNotification                       1/22/2018 10:00:00 AM  Ready

Folder: \Microsoft\Windows\WindowsColorSystem
TaskName                                 Next Run Time          Status
======================================== ====================== ===============
Calibration Loader                       Disabled

Folder: \Microsoft\Windows\Wininet
TaskName                                 Next Run Time          Status
======================================== ====================== ===============
CacheTask                                N/A                    Running

Folder: \Microsoft\Windows Live
TaskName                                 Next Run Time          Status
======================================== ====================== ===============
INFO: There are no scheduled tasks presently available at your access level.

Folder: \Microsoft\Windows Live\SOXE
TaskName                                 Next Run Time          Status
======================================== ====================== ===============
Extractor Definitions Update Task        1/23/2018 5:08:22 PM   Ready

C:\Users\admin>

Figured I'd share this in case others run into this at some point. Microsoft should really have made this state that you cant create a scheduled task until permissions have been set for a user account vs allowing you to get to finalizing the scheduled task to where it states you cant and then it writes the scheduled task anyways to tasks folder of system32.  ::)

Here is Microsoft Documents of Task Scheduler: http://technet.microsoft.com/en-us/library/cc722152.aspx