Exploring the module deny list
During the development of PowerShell 7, it became clear that a few Windows PowerShell modules did not work with PowerShell 7 despite the compatibility solution. Worse, if you attempted to use them, the error messages that resulted were cryptic and non-actionable. One suggested solution was to create a list of modules that were known to not be usable within PowerShell 7. When Import-Module
attempts to load any module on this list, the failure is more graceful with a cleaner message.
One possible issue that such a deny list might cause would be if the module owners were to release an updated module previously on the deny list that now works. To simplify this situation, PowerShell 7 stores the deny list in a configuration file in the $PSHOME
folder.
In PowerShell 7.1, there are three modules that are in the deny list:
PSScheduledJob
: Windows PowerShell commands to manage the Windows Task Manager service. This module is installed in Windows...