~/talk

Mastering PowerShell Parameters: Advanced Techniques and Best Practices

links:none on file
slides:none on file

Demonstrates concrete PowerShell 7 techniques: validate-script only runs on PowerShell 7 and use of the PS Script Tools module with get-type-member and the new PS dynamic parameter form WinForms generator; shows argument completers, validate-set and validate-range examples, and custom validation classes; recommends typing parameters as System.IO.DirectoryInfo instead of strings, warns not to default to "localhost", and walks through positional choices, aliases, mandatory flags and how those decisions affect pipeline binding and runtime failures.

AI-written summary · about

  1. 0:00PowerShell parameter design
  2. 1:58Parameters in PowerShell functions
  3. 8:58Naming and defining parameters
  4. 13:30Positional vs named parameters
  5. 21:42Aliases for flexible input
  6. 29:09Parameter validation techniques
  7. 35:30Advanced validation with completers
  8. 37:16Custom types for parameters
  9. 40:05Deprecating and hiding parameters
  10. 43:19Dynamic parameters best practices
  11. 44:21Parameter pitfalls to avoid
  12. 46:07Summary and resources
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.