CPMR0071 - Script uses commercial cmdlets (script)

CPMR0071 - Script uses commercial cmdlets (script)

WARNING

This rule has been marked as a Requirement.

Requirements represent the minimum quality of a package that is acceptable. When a package version has failed requirements, the package version requires fixing and/or response by the maintainer. Provided a Requirement has flagged correctly, it must be fixed before the package version can be approved. The exact same version should be uploaded during moderation review.

Issue

In an automation script (.ps1/.psm1), one or more calls to a licensed function that is only available in licensed editions of Chocolatey, is being used.

Please do not use licensed features when creating packages that you will submit to the Chocolatey Community Repository. Update all automation scripts to use functions that are available in open-source Chocolatey.

Reasoning

Packages created with licensed features should not be made available in the Chocolatey Community Repository and are intended for use by organizations hosting their own internal package repository. All packages submitted to the Chocolatey Community Repository are for the community and should work on all editions of Chocolatey.