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 a module

The first thing you will probably want to do is to create a module. You can create a module in the Windows PowerShell ISE. The easiest way to create a module is to use functions you have previously written. One of the first things to do is to locate the functions you wish to store in the module. You can copy them directly into the Windows PowerShell ISE. This technique appears in Figure 7-10.

Using the Windows PowerShell ISE makes creating a new module as easy as copying and pasting existing functions into a new file.

Figure 7-10. Using the Windows PowerShell ISE makes creating a new module as easy as copying and pasting existing functions into a new file.

Once you have copied your functions into the new module, save it with the .psm1 extension. The ...

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