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

proxy functions
SMART_READER_LITE
LIVE PREVIEW

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


slide-1
SLIDE 1

Proxy Functions

Jeffrey Snover – Distinguished Engineer/Lead Architect Windows Server

slide-2
SLIDE 2

Demo New Features

  • Get-Help –Type –MSType
  • Out-Default ($LL)
  • Format-Table –IncludeIndex
  • Start-Job –Oncompleted {}
slide-3
SLIDE 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

slide-4
SLIDE 4

Context

  • Where you have to work to work on

PowerShell

slide-5
SLIDE 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

slide-6
SLIDE 6

Building Blocks

  • & call operator
  • Module Named Cmdlets
  • Splatting
  • $PSBoundParameters
  • SteppablePipelines
slide-7
SLIDE 7

Proxy Functions

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