Skip to main content

Documentation Index

Fetch the complete documentation index at: https://tally.wharflab.com/llms.txt

Use this file to discover all available pages before exploring further.

powershell/PSAvoidUsingDeprecatedManifestFields is a PSScriptAnalyzer diagnostic emitted by tally for PowerShell snippets embedded in Dockerfiles.
PropertyValue
SeverityWarning
CategoryPSScriptAnalyzer
Auto-fixNo

Description

In PowerShell 5.0, a number of fields in module manifest files (.psd1) have been changed. The field ModuleToProcess has been replaced with the RootModule field.

How

Replace ModuleToProcess with RootModule in the module manifest.

Examples

Problematic code

ModuleToProcess ='psscriptanalyzer'

ModuleVersion = '1.0'

Correct code

RootModule ='psscriptanalyzer'

ModuleVersion = '1.0'

Source

This rule documentation is adapted from Microsoft’s PSScriptAnalyzer documentation for AvoidUsingDeprecatedManifestFields, licensed under CC BY 4.0.