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, ∼4514🔥, 0💬
Popular Posts:
What is the "SCNotification.exe" process on windows 7? Is the "SCNotification.exe" process a virus? ...
Where to find tutorials on using Bluetooth? I want to learn how to work with Bluetooth connections? ...
How to download Mozilla FireFox 2? If you want to try Mozilla FireFox 2, you can follow this tutoria...
A collection of 39 tutorials on understanding and managing Windows startup programs: What is a start...
How to start sc.exe command to create, delete and manage Windows services? sc.exe is a command line ...