O'Reilly logo

Windows PowerShell™ 3.0 Step by Step by Ed Wilson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating an advanced function: step-by-step exercises

In this exercise, you’ll explore creating an advanced function. You will use a template from the Windows PowerShell ISE to create the basic framework. Next, you will add help and functionality to the advanced function. Following this exercise, you will add the advanced function to a module and install the module on your system.

Creating an advanced function

  1. Start the Windows PowerShell ISE.

  2. Use the cmdlet (advanced function) snippet from the Windows PowerShell ISE to create the basic framework for an advanced function.

  3. Move the comment-based help from outside the function body to inside the function body. The moved comment-based help appears here:

    function Verb-Noun { <# .Synopsis Short ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required