Using the example below:
Get-Service | ConvertTo-HTML -Property Name, Status > C:\\services.htm
I was wondering if it is possible to ali
You could do an intermediate step of creating objects with the property names you want using the new-object cmdlet.
new-object
Get-Service | foreach{ new-object PSObject -property @{newname=($_.Name); newstatus=($_.Status)}} | ConvertTo-Html > .\services.htm