Add support for PowerShell core (6 or 7)
Running PowerShell commands from Pulseway has been supported for quite some time now. With PowerShell Core having been released almost 3 years ago, adding support for running PowerShell Core scripts is overdue.
To add support, you should be able to just add a new PowerShell Core option and point it to run pwsh.exe instead of powershell.exe.
PowerShell 7 documentation links:
https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_pwsh?view=powershell-7
https://docs.microsoft.com/en-us/powershell/scripting/install/migrating-from-windows-powershell-51-to-powershell-7?view=powershell-7
Comments: 1
-
14 Feb, '21
Johnny JFor all platforms Windows, macOS, Linux (and some other)
and an policy option to sett which script engine to use by default per platform, devices and groups and scopes of devices
and also automatically detect which platform/OS it's running on
and be able to split up the running script for a
header script = which runs the script and holds all non-OS specific code whereas OS specific code is per os
- windows script (part)
- macos script (part)
- linux script (part)