Bird
0
0

Why might Install-Module fail to install a module even when the command syntax is correct and you have internet access?

hard📝 Conceptual Q10 of 15
PowerShell - Modules and Script Organization
Why might Install-Module fail to install a module even when the command syntax is correct and you have internet access?
AThe module is already installed in the current session
BThe module name is misspelled in the command
CThe PowerShell repository is not trusted on your system
DYou are running PowerShell as administrator
Step-by-Step Solution
Solution:
  1. Step 1: Consider common causes of install failure

    Even with correct syntax and internet, trust issues with the repository can block installs.
  2. Step 2: Analyze options

    Misspelling causes different errors, running as admin is usually required, and existing modules do not block install.
  3. Final Answer:

    The PowerShell repository is not trusted on your system -> Option C
  4. Quick Check:

    Untrusted repository blocks install despite correct syntax [OK]
Quick Trick: Trust repository with Set-PSRepository to avoid install failures [OK]
Common Mistakes:
  • Assuming admin rights cause failure
  • Ignoring repository trust errors
  • Confusing existing module presence with failure cause

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More PowerShell Quizzes