IntuneManagement icon indicating copy to clipboard operation
IntuneManagement copied to clipboard

Incompatible modules with PowerShell 7+

Open aollivierre opened this issue 1 year ago • 3 comments

many modules are broken when running this tool in PowerShell 7+. We get a wall of error. Super easy to re-produce if you simply call start-intunemanagement.ps1 in a PWSH.exe window.

aollivierre avatar Feb 05 '24 00:02 aollivierre

Hello,

This is a known issue. Only supported with PowerShell 5 at the moment. PowerShell 7 breaks a few things when converting json data with DateTime + a few other issues.

I might look into this in the future.

Cheers!

Micke-K avatar Feb 05 '24 07:02 Micke-K

Found another issue with powershell 7. In Core.psm1 $PSVersionTable.BuildVersion and $PSVersionTable.CLRVersion are not supported. Please keep that in mind, when you update the module :) Thanks

BenjaminNiemann avatar Jun 07 '24 12:06 BenjaminNiemann

Hello,

Thank you for that. I might start looking at this soon. New version is coming along very slowly. Way too slow because I've been too busy with other things and the rewrite ended up much bigger than I thought. I have a good base now but still lots to do. PowerShell 7 is one of them.

Cheers!

Micke-K avatar Jun 13 '24 11:06 Micke-K