0 votes

I am trying to use ConvertFrom-Json in a scheduled task. I am running Windows 2012 with PowerShell v3. The script works when I run it from the PowerShell command prompt so I can use Windows scheduled tasks to run the command if need be but why will it not run in a Adaxes scheduled task?

I get "The term 'ConvertFrom-Json' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again." as the error.

by (590 points)

1 Answer

0 votes
by (216k points)

Hello,

You cannot use the cmdlet in Adaxes because it was introduced only in PowerShell v.3, however Adaxes uses PowerShell v.2. We are planning to switch to a higher version of PowerShell in the future, but until that is done, you won't be able to use PowerShell v.3 features, such as the ConvertFrom-Json cmdlet.

Related questions

0 votes
1 answer

After updating all built-in reports to initial state, I have noticed that there are a few reports that need some criteria in JSON format, and the filed Criteria (JSON) is ... you work with JSON Criteria? At least, what is the syntax to include all objects?

asked Sep 26, 2023 by gsoc.ssm (40 points)
3,326 questions
3,026 answers
7,727 comments
544,678 users