February 2013
Beginner
704 pages
21h 31m
English
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, ...