I would like to create a txt file report about installed products. I get these information from an XML document with the following structure:
<xmlroot>
<product definitionName="ProductName" versionMajor="1" versionMinor="1" versionBuild="111">
</product>
Now, after I filtered by definitionName, I want to write a file with two colomns "ProductName" and "Version" by concatenating the versions like this "1.1.111".
When I do this:
$ProductVersions.xmlroot.product | Select-Object -Property definitionName, versionMajor, versionMinor, versionBuild
I get a list like this:
definitionName versionMajor versionMinor versionBuild
-------------- ------------ ------------ ------------
ProductName 1 1 111
What I want is a list like this:
ProductName Version
-------------- ------------
ProductName 1.1.111
Please help me to find a way. Thank you.