I want display a list for all VMs' name.
Get-VM will export to many info,how to filter the info i need?
With the Select-Object cmdlet, like this
Get-VM | Select Name
The Get-VM produces objects which you pass through the pipeline ('|') to the Select-Object cmdlet.
The Select-Object cmdlet allows you to select one or more of the properties of the objects it recieves.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
With the Select-Object cmdlet, like this
Get-VM | Select Name
The Get-VM produces objects which you pass through the pipeline ('|') to the Select-Object cmdlet.
The Select-Object cmdlet allows you to select one or more of the properties of the objects it recieves.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Thanks LucD!
There're so much knowledge I need to learn from you !
In My PS Library post you'll find some links to learning resources for PowerShell.
Josh also did a nice overview of getting started resources, see his Resources for Getting Started with #PowerCLI Automation
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference