Challenge - 5 Problems
PowerShell Gallery Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate2:00remaining
What is the output of listing installed modules?
You run the command
Get-InstalledModule in PowerShell. What output do you expect if you have the module 'Pester' version 5.3.1 installed?PowerShell
Get-InstalledModule
Attempts:
2 left
💡 Hint
Think about the default properties shown by Get-InstalledModule.
✗ Incorrect
Get-InstalledModule shows the module name, version, and repository by default in a table format.
💻 Command Output
intermediate2:00remaining
What happens when you install a module twice?
You run
Install-Module -Name Pester -Force twice in a row. What is the expected output or behavior?PowerShell
Install-Module -Name Pester -Force Install-Module -Name Pester -Force
Attempts:
2 left
💡 Hint
The -Force parameter forces reinstallation without prompts or errors.
✗ Incorrect
Using -Force with Install-Module reinstalls or overwrites the module without error or prompt.
🚀 Application
advanced2:00remaining
How to find the latest version of a module in PowerShell Gallery?
You want to find the latest available version of the module 'Pester' from the PowerShell Gallery without installing it. Which command will give you this information?
Attempts:
2 left
💡 Hint
Find-Module searches the gallery without installing.
✗ Incorrect
Find-Module queries the PowerShell Gallery for module info including the latest version without installing it.
🔧 Debug
advanced2:00remaining
Why does this Install-Module command fail with 'Access Denied'?
You run
Install-Module -Name Pester in PowerShell and get an 'Access Denied' error. What is the most likely cause?Attempts:
2 left
💡 Hint
Installing modules system-wide requires admin rights.
✗ Incorrect
By default, Install-Module installs modules to a system-wide folder requiring admin rights. Without admin rights, it fails with access denied.
🧠 Conceptual
expert2:00remaining
What is the purpose of the PowerShell Gallery repository?
Which statement best describes the PowerShell Gallery repository?
Attempts:
2 left
💡 Hint
Think about where you get modules from when you use Install-Module.
✗ Incorrect
PowerShell Gallery is an official online repository hosting modules and scripts for sharing and easy installation.