Support powershell 7 in ShareGate
Usually, I have a mixed environment on-prem + SPO, so I use Powershell 5 for on-prem, and Powershell 7 for SPO with installed pnp modules to do some additional steps. Would be nice if the ShareGate module could work in PowerShell 7+ currently I receive there
Version 17.1.3 (Assembly 17.1.3.0, Build 2703)
[0] PS-105-405 (RetryFailed: False) --- Sharegate.Common.Exceptions.SGUnsupportedPowerShellVersionException: ShareGate doesn't support PowerShell version 7.2.5. Please use PowerShell 5.1 instead.
at g.u.a.u.i2()
at g.u.a.u.ProcessRecord()
at System.Management.Automation.CommandProcessor.ProcessRecord()
-
Krzysztof Skiba commented
I have the same work scenario. I use heavily PNP PowerShell with ShareGate PowerShell.
PNP is going to drop support of Powershell 5.1 (https://github.com/pnp/powershell)"As the technologies behind PowerShell evolve, so will the PnP PowerShell module. Since Microsoft is not supporting .NET 3.1 since December 2022, and .NET Framework not actively developed (and not cross platform), we are currently working on PnP PowerShell 2.x.
Therefore, this new version going forward will not support PowerShell 5.1 nor the ISE. "
PowerShell 7 is heavily developed and on some stage will replace 5.1 completely. Please make it compatible.
-
Craig commented
in order to run powershell scripts with PNP and due to the authentication this is critical