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, ∼4500🔥, 0💬
Popular Posts:
How to install the latest Lenovo ThinkPad Bluetooth driver on my Windows 7 system? I have downloaded...
What is CLI.exe - Process - ATI CLI Application (Command Line Interface)? Process CLI.exe is the ATI...
What is msntb.dll - DLL file - Windows Live Toolbar for Internet Explorer? DLL msntb.dll is installe...
Why I am getting the "Why did my PC restart?" message? After taking the quick setup information, you...
Using Columnar as the layout for a form as shown in the previous tutorial is good to enter new recor...