Forum Discussion

mikenelson-pure's avatar
mikenelson-pure
Community Manager
3 years ago

While not supported or fully tested at this point,

While not supported or fully tested at this point, there is a way to run SDKv1 cmdlets in PowerShell 7.x (.net Core). This involves the use of a Import-Module parameter called `-UseWindowsPowerShell`. This parameter basically creates a background process for any PowerShell 5.1 .Net Framework cmdlets and does its best to run them seamlessly in the 7.x session through implicit remoting. There are limitations, https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_windows_powershell_compatibility?view=powershell-7.2|spelled out in this document, with the most significant being that the compatibility "operates on serialized cmdlet parameters and return values, not on live objects." This may be an issue for some of the SDKv1 cmdlets and the information returned. Again, we need to test it more thoroughly and while it's on our to-do list, it is not a high priority. We would be interested in any feedback if you have the opportunity to test this with our SDK or with any .Net Framework module for that matter, It is always great to hear about how you work with PowerShell. Please share!
No RepliesBe the first to reply