Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Severity Level: Warning
Description
This rule detects the usage of deprecated manifest fields in module manifest files (.psd1) that
should be replaced with their modern equivalents. PowerShell 5.0 deprecated several fields in module
manifest files (.psd1) in favor of new alternatives.
The ModuleToProcess field, which was used to specify the module script file to load, is replaced
with the RootModule field. The RootModule field provides the same functionality and is the
recommended approach for new modules.
Example
Noncompliant
ModuleToProcess ='psscriptanalyzer'
ModuleVersion = '1.0'
Compliant
RootModule ='psscriptanalyzer'
ModuleVersion = '1.0'