Format-List is a very useful command throughout the Powershell based applications which I use every day. لعبة الدومينو الامريكية
Command | Format-List
This command gives you a list of all the attributes against the object you run it against. This is extremely useful if you are unsure on an attribute, see my example below where I want to know all the attributes for all the Datacenters, I start by running the command (NOTE – FL is an abbreviation for Format-List)
Get-Datacenter | FL
This produces the list below which allows you to see the attributes all the attributes for all the Datacenters
You can then once again select this attributed in more detail
Get-Datacenter vDC1 | Select Name, ParentFolder
This will produce a table showing the Name of the Datacenter against the Parent Folder.
Leave a Reply