Bird
0
0

What does the PowerShell command Install-Module do?

easy📝 Conceptual Q11 of 15
PowerShell - Modules and Script Organization
What does the PowerShell command Install-Module do?
ADownloads and installs a module to add new commands
BRemoves an installed module from the system
CLists all installed modules on the system
DUpdates all installed modules to the latest version
Step-by-Step Solution
Solution:
  1. Step 1: Understand the purpose of Install-Module

    The command Install-Module is used to download and install new modules from online repositories.
  2. Step 2: Differentiate from other module commands

    Commands like Remove-Module remove modules, Get-Module lists modules, and Update-Module updates them. These are different from Install-Module.
  3. Final Answer:

    Downloads and installs a module to add new commands -> Option A
  4. Quick Check:

    Install-Module = Downloads and installs [OK]
Quick Trick: Install-Module always adds new modules, not removes or lists [OK]
Common Mistakes:
  • Confusing Install-Module with Remove-Module
  • Thinking it only lists modules
  • Assuming it updates modules

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More PowerShell Quizzes