1 / 9

Jeffrey Snover | Distinguished Engineer & Lead Architect

04 | Advanced Functions. Jeffrey Snover | Distinguished Engineer & Lead Architect Jason Helmick | Senior Technologist, Concentrated Technology. Module Overview. The purpose to Advanced Functions An Advanced Function template Creating and testing parameters Adding your code

Download Presentation

Jeffrey Snover | Distinguished Engineer & Lead Architect

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 04 | Advanced Functions Jeffrey Snover | Distinguished Engineer & Lead Architect Jason Helmick | Senior Technologist, Concentrated Technology

  2. Module Overview • The purpose to Advanced Functions • An Advanced Function template • Creating and testing parameters • Adding your code • Writing objects out to the pipeline

  3. The purpose to Advanced Functions • You can create functions that are similar to cmdlets using PowerShell • These are not the same as compiled cmdlets, but are perfect the for IT pro!

  4. Advanced Function template • You can make your own • The ISE has built-in templates • Try Ctrl-J

  5. Creating and testing parameters • Can test params using IF and Foreach constructs

  6. Adding your code • The Foreach iterates through the computer names • Place the properties into a hash table

  7. Writing objects out to the pipeline • New-Object

  8. Questions or comments?

More Related