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, ...
Get Windows PowerShell™ 3.0 Step by Step now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.