In this script the data isn’t sorting by the first column computer, and THEN the program name. What is going wrong there?
$data = Get-RemoteProgram -ComputerName (Get-Content -Path C:PowerShellcomplist.txt) -ExcludeProgram (Get-Content -Path C:PowerShellapplist.txt) | Where-Object {($_.ProgramName -notmatch 'KBd+|Microsoft .NET|Microsoft Visual|Intel|Windows Driver Package')} | sort Computer,ProgramName
$data | export-csv -path C:PowerShelloutput.csv -NoTypeInformation
$data | export-csv -path C:PowerShelloutputappend.csv -NoTypeInformation -Append
Sorts by computer OR programname, but not one and then the other.
New contributor
Dan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.