Commenting
suggest changeTo comment on power scripts by prepending the line using the \#
(hash) symbol
# This is a comment in powershell
Get-ChildItem
You can also have multi-line comments using <#
and #>
at the beginning and end of the comment respectively.
<#
This is a
multi-line
comment
#>
Get-ChildItem
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents