What Does the PowerCLI -f Flag Do?

Problem scenario
You have seen the PowerCLI -f option. What does it mean or do?

…-f ($_.SizeGB)…

Solution
It manipulates the format of the output of a PowerCLI command usually to make the output more readable; one purpose is to make the output consumable for another PowerCLI command.

(The answer was adapted from pages 114 and 115 of PowerCLI Cookbook by Sellers.)

Leave a comment

Your email address will not be published. Required fields are marked *