-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
Hi there. Nice library! Working with @garbados to get support for various platforms into psaux.
Unfortunately, the ConvertTo-Json PowerShell cmdlet you're using doesn't exist in Windows 7. It's only present in PowerShell 3.0 and up and Windows 7 (along with some Windows Server versions) only have v2.0.
Worse, the library actually hangs on Windows 7 machines with PowerShell 2.0, rather than failing out.
For lack of a better term, there's a public domain "polyfill" that gives you this behaviour in PowerShell 2.0: https://github.com/EliteLoser/ConvertTo-Json
Could you include this library and use it when you detect PowerShell's version is not 3.0 or greater? Thanks!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels