Exploring compatibility
It’s all very well saying that some modules aren’t compatible with PowerShell 7, but how do we know which ones are OK to use, and what happens when they aren’t? The good news is that most of this process is automated and transparent to the casual user; we need to know about it however so we can understand why bad things happen sometimes. To understand compatibility, we’ll need to remember what we learned about modules and module manifests from Chapter 11, Creating Our First Module, and the section on PowerShell remoting that we did in the last chapter, Chapter 12, Securing PowerShell.
Which modules are compatible with PowerShell 7?
Let’s have a look at some modules to see how we can tell whether they are compatible with PowerShell 7. Run this cmdlet in Windows PowerShell:
Get-Module | Format-Table -Auto -Wrap Name, CompatiblePSEditions, Version
We should see something like the following output: