Alex Rivera | Logout

How do you comment out code in PowerShell?

Asked 2011-09-08T02:43:10.283
1120

How do you comment out code in PowerShell (1.0 or 2.0)?

Edit
Report

1 Answer

120

You use the hash mark like this:

# This is a comment in PowerShell

Wikipedia has a good page for keeping track of how to do comments in several popular languages:

Comments

answered 2011-09-08T02:47:02.637

Your Answer