Select-Object -last 1?
Posted: Mon Feb 12, 2018 2:10 pm
Hello,
So I gather applications off of a PC
Our log files tell us what applications have been installed.
I could pull the registry but I've found looking for the .log files to be much quicker
I have a problem where we have mutliple versions of applications
Chrome
Acrobat
Visio
etc..
If my list looks like this
Adobe Acrobat Pro DC 15
Adobe Acrobat Pro DC 17
Google Chrome 50.0.2661.94
Google Chrome 59.0
Microsoft Visio Pro for Office 365 1512 15.0.4779.1002
Microsoft Visio Pro for Office 365 1609 16.0.7369.2127
How would I get it to look like this
Adobe Acrobat Pro DC 17
Google Chrome 59.0
Microsoft Visio Pro for Office 365 1609 16.0.7369.2127
I only want to display the newest if there are more than one that eqaul
So I gather applications off of a PC
Our log files tell us what applications have been installed.
I could pull the registry but I've found looking for the .log files to be much quicker
I have a problem where we have mutliple versions of applications
Chrome
Acrobat
Visio
etc..
If my list looks like this
Adobe Acrobat Pro DC 15
Adobe Acrobat Pro DC 17
Google Chrome 50.0.2661.94
Google Chrome 59.0
Microsoft Visio Pro for Office 365 1512 15.0.4779.1002
Microsoft Visio Pro for Office 365 1609 16.0.7369.2127
How would I get it to look like this
Adobe Acrobat Pro DC 17
Google Chrome 59.0
Microsoft Visio Pro for Office 365 1609 16.0.7369.2127
I only want to display the newest if there are more than one that eqaul