New Training: Author PowerShell Modules
In this 8-video skill, CBT Nuggets trainer Trevor Sullivan teaches you how to create a PowerShell script module. Gain an understanding of module manifests. Learn how to structure your PowerShell module as it grows and how to debug a function in your module. Watch this new PowerShell training.
Watch the full course: Advanced PowerShell Automation
This training includes:
44 minutes of training
You’ll learn these topics in this skill:
Understanding PowerShell Module Structure
Building Your First PowerShell Module
Understanding PowerShell Module Manifests
Splitting Your PowerShell Module Into Pieces
Publishing Your Module to the Gallery
Debugging Your PowerShell Module
Call to Action
What is a PowerShell Module, and How Can It Help PowerShell Functionality?
PowerShell provides users with a very high level of automation and configuration through the object-based scripting language built on top of the .NET framework. One of the greatest values that are provided in the PowerShell offers is the ability to build PowerShell Modules. A PowerShell Module is a user-defined set of PowerShell cmdlets that together build a more complex process of actions on PowerShell objects in an executable format.
PowerShell Modules allow users to save and share complex interdependent PowerShell actions allowing other users to use the module or to keep the module as a standard set of actions to be applied for specific use cases.
PowerShell Modules are composed of four basic components, the code file, additional assemblies, a manifest file and a directory. These four components together allow for PowerShell Modules to define a set of actions, source all the dependencies and reference the directory holding all of the PowerShell cmdlets and dependencies.