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
-Global
parameter when importing a module? - How do we import a module that isn’t in a path specified in the
$
ENV:PSModulePath
variable? - 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
HelpInfoURI
key in a module manifest? - What might be in a file with the
.ps1xml
extension? - If we load a module with the
.dll
extension, what sort of commands will we get? - Why don’t we write CDXML modules?