CHAPTER 3

image

Advanced Programming

So far, we have just scratched the surface of what PowerShell can do—many books stop there. This can leave the reader with the impression that PowerShell is fairly limited as a development platform. This chapter will dispel that notion by discussing a wide variety of advanced programming techniques. We’ll start by discussing the use of parameters to support code reusability. This leads into a discussion of the CmdletBinding attribute, which causes PowerShell to add a number of powerful features to the code, including parameter validation, parameter sets, and support for PowerShell’s common parameters. We will then ...

Get Pro PowerShell for Database Developers now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.