I am quite resourceful for the most part when it comes to PowerShell tasks, but when it comes to parsing info, NOT so much.
There are hundreds of log files in a directory that contain info that looks like this:
[blockquote]Current Logged On User: TestUser
ComputerName : TestComputer
AppID : {90150000-003B-0000-0000-0000000FF1CE}
AppName : Microsoft Project Professional 2013
Publisher : Microsoft Corporation
Version : 15.0.4420.1017
Architecture : 32-bit
ComputerName : TestComputer
AppID : {90150000-0051-0000-0000-0000000FF1CE}
AppName : Microsoft Visio Professional 2013
Publisher : Microsoft Corporation
Version : 15.0.4420.1017
Architecture : 32-bit[/blockquote]
I need help getting just the current logged on user name, the computer name, and the application name. The “ComputerName” category shows up twice in a log file and creates duplicates as shown above for the same computer name, if it has more than one app installed that I am looking for, such as Project and Visio.
What I am trying to arrive at is how to parse hundreds of these log files and output all the data in one clean report that looks something like this:
[blockquote]Current Logged On User: TestUser
ComputerName : TestComputer
AppName : Microsoft Project Professional 2013
AppName : Microsoft Visio Professional 2013[/blockquote]
Any help would be GREATLY appreciated, as always.
Thanks everyone.