proxy functions
play

Proxy Functions Jeffrey Snover Distinguished Engineer/Lead Architect - PowerPoint PPT Presentation

Proxy Functions Jeffrey Snover Distinguished Engineer/Lead Architect Windows Server Demo New Features Get-Help Type MSType Out-Default ($LL) Format-Table IncludeIndex Start-Job Oncompleted {} New Features


  1. Proxy Functions Jeffrey Snover – Distinguished Engineer/Lead Architect Windows Server

  2. Demo New Features • Get-Help – Type – MSType • Out-Default ($LL) • Format-Table – IncludeIndex • Start-Job – Oncompleted {}

  3. New Features • Get-Help – Type – MSType – Thanks to superstar Travis Jones • Out-Default ($LL) – Thanks to superstar Lee Holmes • Format-Table – IncludeIndex – Thanks to superstar Lee Holmes • Start-Job – Oncompleted {} – Thanks to superstar Jan Egil Ring

  4. Context • Where you have to work to work on PowerShell

  5. Use Cases • New Cmdlets – Leverage the power of existing Cmdlets – Preserve streaming semantics – Stream merging • Extend Cmdlets – Modify the behavior – Add new parameter • Restrict Cmdlets – Add parameter constraints (validation attributes) – Remove parameters for restricted runspaces

  6. Building Blocks • & call operator • Module Named Cmdlets • Splatting • $PSBoundParameters • SteppablePipelines

  7. Proxy Functions • New-Object System.Management.Automation.CommandMetaData $cmd • [System.Management.Automation.ProxyCommand]::Create($metadata)

Recommend


More recommend