0
0
PowerShellscripting~10 mins

Installing modules (Install-Module) in PowerShell - Interactive Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to install the module named 'Az'.

PowerShell
Install-Module -Name [1]
Drag options to blanks, or click blank then click option'
AAzure
BAz
CAzureRM
DAzureModule
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'Azure' instead of 'Az' as the module name.
Confusing 'AzureRM' which is an older module.
2fill in blank
medium

Complete the code to install the module 'PSReadLine' without asking for confirmation.

PowerShell
Install-Module -Name PSReadLine -[1]
Drag options to blanks, or click blank then click option'
AForce
BConfirm
CNoConfirm
DSkip
Attempts:
3 left
💡 Hint
Common Mistakes
Using '-Confirm' which actually asks for confirmation.
Using '-NoConfirm' which is not a valid parameter.
3fill in blank
hard

Fix the error in the code to install the module 'Pester' for the current user only.

PowerShell
Install-Module -Name Pester -Scope [1]
Drag options to blanks, or click blank then click option'
AUser
BAllUsers
CCurrentUser
DLocal
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'User' or 'Local' which are not valid scope values.
Using 'AllUsers' which installs for all users.
4fill in blank
hard

Fill both blanks to install the module 'Az.Accounts' and allow pre-release versions.

PowerShell
Install-Module -Name [1] -[2]
Drag options to blanks, or click blank then click option'
AAz.Accounts
BAllowPrerelease
CForce
DSkipPublisherCheck
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'Force' instead of 'AllowPrerelease'.
Using 'SkipPublisherCheck' which is unrelated.
5fill in blank
hard

Fill all three blanks to install the module 'PSGallery' from the repository 'PSGallery' and force the installation.

PowerShell
Install-Module -Name [1] -Repository [2] -[3]
Drag options to blanks, or click blank then click option'
APSGallery
CForce
DCurrentUser
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'CurrentUser' as a parameter instead of 'Force'.
Confusing repository name with module name.