Powershell Tip #8: OutVariable parameter

By | July 12, 2015

Tip: You can store the output of a command in a variable and at the sametime have this output on the screen.

It is like “2 in 1”, you save and output.

Note: no need to put the $ sign.

One line (needed to store and output on the screen)


Two lines (needed to store and output on the screen)



One thought on “Powershell Tip #8: OutVariable parameter

  1. Pingback: Powershell Tip #7: Convert WMI date to Datetime | Powershell Guru

Leave a Reply

Your email address will not be published.