Hi,
I am trying to create a PowerShell script that will dump the software on the local machine and is sorted by Name/Vendor/Version. This can be done with this:
Get-wmiobject Win32_Product | Sort-Object Vendor, Name | Format-Table Vendor, Name, Version -groupBy Vendor
However, I want to be able to match / sort by a specific vendor (let's say I want to only pull data that has Microsoft or the word 'Microsoft' as a vendor). I then want this output to be put into a formatted HTML file. For example, matching all software created by Skype and their versions, in a HTML file.
The script I am using without the HTML works, and it is this:
Get-wmiobject Win32_Product | Sort-Object Vendor, Name | Format-Table Vendor, Name, Version -groupBy Vendor | findstr Microsoft
..however if I add findstr Microsoft | ConvertTo-HTML | Out-File c:\test.html on the end, it does not work.
I've tried RegEx and using the -match command without much success.
Any help is greatly appreciated :)
Many thanks.