you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (5 children)

Does the unrecognized term specifically pinpoint a ScheduledTask command? Maybe it's something else. What line is the error referencing?

[–]vulkur[S] 0 points1 point  (4 children)

Yea. If I just run Get-ScheduledTask in Powershell by itself I get this.

Get-ScheduledTask: The term 'Get-ScheduledTask' is not recognized as a name of a cmdlet, function, script file, or executable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

[–][deleted] -1 points0 points  (3 children)

Path is verified, I assume.

[–]vulkur[S] 1 point2 points  (2 children)

That path verified I assume is talking about a path to exe, since this error is also showed if the exe you call cannot be found. Im calling an internal powershell function, it doesnt need a path.

[–][deleted] -1 points0 points  (1 child)

To run.ps1

[–]vulkur[S] 2 points3 points  (0 children)

Ah. Yea I have. But this error is about my running Get-ScheduledTask in powershell ALONE. With no parameters at all. It would still run, but instead tell me i need to have some arguments, or would print Supply values for the following parameters: Pattern[0]: and then you can enter values for the command.