Exercises
Here are the exercises for this chapter:
- How can you list all imported modules in the current PowerShell session?
- What is the purpose of the
-Globalparameter when importing a module? - How do we import a module that isn’t in a path specified in the
$ENV:PSModulePathvariable? - We want to import a module that contains functions that have the same name as cmdlets that already exist in our session. What are two ways we can get around this?
- By default, all the functions of a module are exported. What are two ways we can control what functions are exported?
- What is the purpose of the
HelpInfoURIkey in a module manifest? - What might be in a file with the
.ps1xmlextension? - If we load a module with the
.dllextension, what sort of commands will we get? - Why don’t we write CDXML modules?