1/19
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
|---|
No study sessions yet.
A PowerShell module typically is composed of one or more ____________.
functions
Which of the commands below would help you to find modules dealing with printing?
Find-Module -name "*print*"
Once a module folder path is in the PSModulePath environment variable, you have to import the module into the current session to use it. Because of PowerShell’s auto-importing feature, if you have a module installed, you can usually call the function you want first, and PowerShell will auto-import the module it belongs to.
True
PowerShell Modules all have the extension _____________
.psm1
To manually import a module xyz, use the ____________________ command.
import-Module -name xyz
______________ are groups of similar functions that are packaged together and distributed for others to use across many scripts.
Modules
A module can be imported either manually or automatically.
True
Get-Module -_________ displays a list of all of the modules currently available to you within your session.
listavailable
Before using a module, you must
install it and then import it.
The ___________________ command allows you to see all the modules on your system available to you in your current session.
Get-Module
The ______________________ is a repository of thousands of PowerShell modules and scripts that anyone with an account can freely upload to or download from.
PowerShell Gallery
To add a directory such as C:\Scripts to the path, for the current PowerShell session only, enter the following
$env:PSModulePath + ';C:\Scripts'
As of PowerShellv3, PowerShell auto-imports modules when a command is referenced.
True
PowerShel comes with many modules installed by default.
True
Uninstalling and Removing a module both accomplish the same thing.
False
A __________________ function is a function that isn't exported to a user and only works inside a script or module.
private
A typical PowerShell module consists of
A. a .psmod1 file (the module)
B. a .psmm file
C. a .psm1 file (the module)
D. a .psd1 file (the module manifest)
E. a Folder
C, D & E
Modules that are installed by default are typically stored in
C:\Windows\System32\WindowsPowerShell\1.0 \Modules
You can tell PowerShell to add a new module path by using the ______________ environment variable, which defines each module folder separated by a semicolon
$PSModulePath
To create a .psd1 file template, you can use the ________________ command.
New-ModuleManifest