BACK
TOP
The full guide of PowerShell that any developer needs to know – Commenting
Matías Creimerman - Buenos Aires, Argentina - 2019-10-07

Once you have ready to script with PowerShell (PS) you need to know some basic knowledge, commenting is one of these.

Commenting is useful to indicate the features of the script, or maybe comment something interesting about the code.

For commenting you have two options:

— Using # (hash character):

# This is a comment
[your code]

— Using multi-line comment :

<#
This is a
multi-line
comment
#>
[your code]

This content is property of Matias Creimerman
Any misuse of this material will be punishable
This work is licensed under a
Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License
Creative Commons License