Bird
0
0

Which PowerShell command is used to install a module from the PowerShell Gallery?

easy📝 Syntax Q12 of 15
PowerShell - Modules and Script Organization
Which PowerShell command is used to install a module from the PowerShell Gallery?
AInstall-Module
BGet-Module
CPublish-Module
DRemove-Module
Step-by-Step Solution
Solution:
  1. Step 1: Identify the command to install modules

    The command to install a module from the PowerShell Gallery is Install-Module.
  2. Step 2: Understand other commands

    Get-Module lists modules, Publish-Module uploads modules, and Remove-Module removes loaded modules, not installs.
  3. Final Answer:

    Install-Module -> Option A
  4. Quick Check:

    Install module = Install-Module [OK]
Quick Trick: Install modules? Use Install-Module command [OK]
Common Mistakes:
  • Using Get-Module to install
  • Confusing Publish-Module with install
  • Trying Remove-Module to add modules

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More PowerShell Quizzes