Search notes:

PowerShell cmdLet Unregister-ScheduledTask

unregister-scheduledTask tskXyz -confirm:$false

Error: No matching MSFT_ScheduledTask objects found by CIM query for instances of ‥

When I tried to execute
unregister-ScheduledTask -taskName renesTask -taskPath '\Foo\Bar'
I got the error message
unregister-ScheduledTask : No matching MSFT_ScheduledTask objects found by CIM query for instances of the Root/Microsoft/Windows/TaskScheduler/MSFT_ScheduledTask class on the  CIM server:
SELECT * FROM MSFT_ScheduledTask  WHERE ((TaskName LIKE 'renesTask')) AND ((TaskPath LIKE '\\Foo\\Bar')). Verify query parameters and retry.
I was able to delete the task by appending a final backslash to the task path:
unregister-ScheduledTask -taskName renesTask -taskPath '\Foo\Bar\'

See also

Powershell command noun: scheduledTask

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/Windows/...', 1788450540, '216.73.217.21', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Windows/PowerShell/command-inventory/noun/scheduledTask/unregister(49): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78