December 2013
Intermediate to advanced
1872 pages
153h 31m
English
Adding comments to a PowerShell script is as simple as adding the # character at the beginning of the line. To comment out entire blocks of code, you start a comment block with the <# character and terminate the comment block with the #> character, as shown in the following example:
<#The is the area containing thecomments in you comment block.#>
Note
Another way to comment out blocks of code is to use something called a here string. This technique is not covered in this book.