Have you ever noticed that if you include a variable within a PowerShell Write-Host statement, that variable is evaluated, even if you include the reference to the variable within the quotation marks?
Business.com on MSN
Understanding functions in PowerShell
Don’t copy and paste the same code over and over again. Instead, create a PowerShell function and save yourself time.
Results that may be inaccessible to you are currently showing.
Hide inaccessible results
Feedback