Bird
0
0

Which key in a PowerShell module manifest (.psd1) defines the minimum PowerShell version required to import the module?

easy📝 Conceptual Q2 of 15
PowerShell - Modules and Script Organization
Which key in a PowerShell module manifest (.psd1) defines the minimum PowerShell version required to import the module?
ARequiredModules
BPowerShellVersion
CCompatiblePSEditions
DModuleVersion
Step-by-Step Solution
Solution:
  1. Step 1: Identify the key for minimum PowerShell version

    The PowerShellVersion key specifies the minimum PowerShell version needed to import the module.
  2. Step 2: Differentiate from other keys

    RequiredModules lists dependent modules, CompatiblePSEditions specifies editions like Desktop or Core, and ModuleVersion is the module's own version.
  3. Final Answer:

    PowerShellVersion -> Option B
  4. Quick Check:

    Minimum PowerShell version = PowerShellVersion [OK]
Quick Trick: Minimum PowerShell version is set by PowerShellVersion key [OK]
Common Mistakes:
  • Confusing RequiredModules with PowerShellVersion
  • Using ModuleVersion instead of PowerShellVersion
  • Mixing CompatiblePSEditions with version requirements

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More PowerShell Quizzes