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

Grouping similar functionality into a module

One of the main ways to clean up your Windows PowerShell profile is to group related items into modules. For example, suppose your Windows PowerShell profile contains a few utility functions such as the following:

  • A function to determine admin rights

  • A function to determine if the computer is a laptop or a desktop

  • A function to determine if the host is the Windows PowerShell ISE or the Windows PowerShell console

  • A function to determine if the computer is 32 bit or 64 bit

  • A function to write to a temporary file

All of the preceding functions relate to the central theme of being utility types of functions. They are not specific to one technology, and are in fact helper functions, useful in a wide ...

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