Behind the PowerShell Pipeline logo

Behind the PowerShell Pipeline

Subscribe
Archives
July 11, 2023

Building with Parameter Sets

Let’s continue building a PowerShell function and explore a topic that might be new to you, parameter sets. We use parameter sets all the time in PowerShell. Look at help for a command like Get-Service.

Under Syntax, there are three ways to use the command. Each collection of parameters is referred to as a parameter set.

Another way to view parameter sets is to use Show-Command.

Want to read the full issue?
GitHub Bluesky LinkedIn About Jeff
Powered by Buttondown, the easiest way to start and grow your newsletter.