About a strange error

Hello everybody,
I wanted to get information about a scheduled task, and I got an error that disorients the search engines:

PS C:\Users\User> Get-ScheduledTaskInfo -TaskName WNbMails
Get-ScheduledTaskInfo : Le fichier spécifié est introuvable.
Au caractère Ligne:1 : 1

  • Get-ScheduledTaskInfo -TaskName WNbMails
  •   + CategoryInfo          : ObjectNotFound: (PS_ScheduledTask:Root/Microsoft/...S_ScheduledTask) [Get-ScheduledTaskInf
     o], CimException
      + FullyQualifiedErrorId : HRESULT 0x80070002,Get-ScheduledTaskInfo

On the first line, the message says that the file is not found. Any idea about what file is the topic?
The task name that I took as an example was given by Get-ScheduledTask.

And what is strange is that for Bing, so for Microsoft, this error is linked to Windows Update.

Well … I was updating nothing.

I intended to list triggers and actions for a sheduled task. What an efficient start indeed.

Can you find that particular Scheduled Task manually in the GUI? Does it exist actually? The error message indicates that there is no task with this name.

Oh, do I have to give the path?
The task is in a folder, and inactive, but is there.

Of course not.

“Inactive” or “Disabled”?
Try to enable it (temporarily) and run your command again.

Nothing changed.
But when giving the path it is OK, the task being active or not:

PS C:\Users\User> Get-ScheduledTaskInfo -TaskName Mozilla\WNbMails

LastRunTime        : 12/10/2023 22:10:10
LastTaskResult     : 0
NextRunTime        :
NumberOfMissedRuns : 1
TaskName           : Mozilla\WNbMails
TaskPath           :
PSComputerName     :