The output I get shown from running cmdlets in my script varies, sometimes there's quite a lot of info written to screen other times there's none, but I can't figure out why. What do I do to manage the output?
For example, my script does
Start-VM -VM $cbrvm -Confirm:$false
Which currently results in >30 lines of data being displayed:
PowerState : PoweredOn
Version : v7
Description : Provides services
Notes : Provides services
Guest : MY-ESX-VPX:
NumCpu : 2
MemoryMB : 1024
HardDisks : {Hard disk 1}
<etc.>
Yesterday this same script was NOT putting the data on the screen. I've made some changes since then but none to the Start-VM command and don't know what makes the difference.
Thanks
Alan