PowerTip: Add Multiple-line Comments in PowerShell

Doctor Scripto

Summary: Learn how to add multiple-line comments in Windows PowerShell.

Hey, Scripting Guy! Question How can I  use Windows PowerShell to add a comment that will wrap over several lines
           if I do not want to use a hash tag for each line?

Hey, Scripting Guy! Answer Begin the comment with <# and end the comment with #>, for example:


   this is a

   multiple line comment



Discussion is closed.

Feedback usabilla icon