Just like any other programming language, you can comment out code in a PowerShell script for documentation purposes.
To comment out a single line, put '#' in the beginning:
To comment out multiple lines, put <# at the beginning and #> at the end of code.
The post How to Comment Out Code in PowerShell Script appeared first on FAQforge.