Collections:
Other Resources:
Add Comments in Windows PowerShell Scripts
How to add comments in Windows PowerShell scripts?
✍: FYIcenter.com
There are two primary ways to add comments in Windows PowerShell scripts:
1. Using # in the middle of line - If you use the "#" sign in the middle of a line, everything starts from "#" to the end of line is considered as a comment. For example:
Write-Host "Hello World!" # Can you hear me?
2. Using <# ... #> block - If you use the "#" block in a script file, everything between the starting tag and the ending tag is considered as a comment. For example:
<# The following command will Test connection with the Microsoft Website Format the output with 2 properties only #> Test-Connection www.microsoft.com -count 1 | format-list Address,ResponseTime
⇒ Assign Object to Variable in Windows PowerShell Scripts
⇐ Running Scripts Disabled in Windows PowerShell
2016-11-02, 3198🔥, 0💬
Popular Posts:
Can I remove startup application "SynTPLpr.exe - TouchPad Driver Helper Application" to speedup my c...
How to download and install Yahoo Toolbar for Internet Explorer (IE) 7 browser? Yahoo Toolbar adds s...
How much does Windows Media Player 11 cost Windows Media Player 11 is a free update to the Windows M...
Why I am getting this "Microsoft Silverlight Update" pop up window? If you have Silverlight 2.0 inst...
What is "Cryptographic Services" in my Windows XP service list? And how is "Cryptographic Services" ...