Chapter 7. Creating Advanced Functions and Modules
After completing this chapter, you will be able to:
Understand the use of the [cmdletbinding] attribute.
Use parameter validation attributes to prevent errors.
Configure shouldprocess to permit the use of -whatif.
Configure Write-Verbose to provide additional information.
Create a module.
Install a module.
Advanced functions incorporate advanced Microsoft Windows PowerShell features and can therefore behave like cmdlets. They do not have to be complicated. In fact, advanced functions do not even have to be difficult to write or to use. What makes a function advanced is the capabilities it possesses that enable it to behave in a similar manner to a cmdlet. Back during the beta of Windows PowerShell 2.0, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access