October 2010
Intermediate to advanced
1008 pages
46h 16m
English
Custom functions in PowerShell enable developers to easily group sections of code together for easier and repeated usage.
Here is a simple HelloWorld function:

To execute this function, type the following:
HelloWorld
The easiest way to get started with functions is with PowerShell ISE and execute the code directly from the ISE. In case the ISE is not available, save the code to a ps1 file with any text editor, such as Notepad. Execute it from a PowerShell shell by typing
\HelloWorld.ps1
Read now
Unlock full access