I am running this command:
get-vm | Select-Object -Property Name,Notes,VMhost,Guest
and the output, from within the powercli window, only gives me the name column and no other... If switch the order it again only gives me the first property in the list. Now if i run the same command but export to csv all the columns show with their associated stats.
Why is it that i cant get the proper output with all the columns from within the powercli window?
I am running powercli ver 5.5 Rel 1 64 bit...
Any suggestions would be greatly appreciated as im am trying to learn powercli.....
Thanks!!!
Could it be that some of the properties contain content that is so long, it pushes the other properties of the screen ?
Try like this, do you see all the properties ?
get-vm | Select-Object -Property Name,Notes,VMhost,Guest | Format-List
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Could it be that some of the properties contain content that is so long, it pushes the other properties of the screen ?
Try like this, do you see all the properties ?
get-vm | Select-Object -Property Name,Notes,VMhost,Guest | Format-List
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
LucD thank you very much, that gave me the output with all associated parameters. Can you tell me how i can change the formatiing on this is powercli? By that i mean that even if i input the same command:
get-vm | Select-Object -Property Name,VMhost
i still get the output only showing one column even though the output is just 2 short items, vm name and host name. Nothing in the output that would push anything off the page...
I know this may be kinda granular but i just would like to be able to understand and control the output of the commands....
Cheers!!
You might try like this
get-vm | Select-Object -Property Name,VMhost | format-Table -AutoSize
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference