Scheduled powershell task ends with '0xC000013A' error code

0

I am trying to schedule an application to run at login (specifically "TineNvidiaUpdateChecker"). This is an .exe file, which briefly opens a cmd window on execution. I want this window to stay open, so I want to run it through powershell, with the '-NoExit' parameter.

I schedule a task at login, and use powershell (version 7.0.3) for the application. I use the parameter field to put "-NoExit -File "C:\Users\fough\scoop\apps\tinynvidiaupdatechecker\current\TinyNvidiaUpdateChecker.exe"".

When this task is run, the following window appears. This seems like a weird error. Powershell Window

In Task Scheduler, the task has the error 0x40 if I use the full path for powershell, or 0xC000013A if I just use "pwsh.exe" as the application.

What am I doing wrong?

scheduled-tasks
powershell-7.0
asked on Stack Overflow Aug 29, 2020 by Fooughhy

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0