HTML can be a simple way of formatting data for output reports. In this 3-part series, we first illustrate how you compose HTML reports, then show a simple way to turn these HTML reports into PDF documents.
One good way of investigating command results is to use Select-Object to show all properties of the first (random) returned object. Here is an example:
Get-Service | Select-Object -Property * -First 1
This way, you get one result object with all of its properties visible, and you can see real-world data contained in these properties to better evaluate what particular properties are for.
Another way of investigating is to use Get-Member and view all available properties from a more technical/declarative perspective:
Get-Service | Get-Member -MemberType *property
Here, you can see the returned data types, and each property is declared as “{get;}” (readonly) or “{get;set;}” (read/writeable).