Bird
0
0

You want to install a specific version 2.0.0 of the module 'Pester' from the PowerShell Gallery. Which command should you use?

hard📝 Application Q8 of 15
PowerShell - Modules and Script Organization
You want to install a specific version 2.0.0 of the module 'Pester' from the PowerShell Gallery. Which command should you use?
AInstall-Module -Name Pester -Version 2.0.0
BInstall-Module -Name Pester -RequiredVersion 2.0.0
CInstall-Module Pester -Version 2.0.0
DInstall-Module -Name Pester -SpecificVersion 2.0.0
Step-by-Step Solution
Solution:
  1. Step 1: Identify correct parameter for version

    The parameter to specify exact version is '-RequiredVersion'.
  2. Step 2: Check syntax correctness

    Install-Module -Name Pester -RequiredVersion 2.0.0 uses correct parameter and syntax. Others use incorrect or missing parameter names.
  3. Final Answer:

    Install-Module -Name Pester -RequiredVersion 2.0.0 -> Option B
  4. Quick Check:

    Install specific version = -RequiredVersion [OK]
Quick Trick: Use -RequiredVersion to install exact module version [OK]
Common Mistakes:
  • Using -Version instead of -RequiredVersion
  • Omitting parameter names
  • Using non-existent -SpecificVersion parameter

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More PowerShell Quizzes