Hello,
I'm currently trying to figure out how to go about displaying the most recently installed application on a local host? I was thinking a real simplified version would be to Dir a directory then compare and format the last right time appropriately but I noticed parent directories do not reflect the modifications in their subdirectory. For example, from C:\ the last modification was yesterday, even though I drill into C:\Users\Username\ and I can see I've changed a number of files within the last 10 minutes.
I'm thinking my logical concept is off in some way - or maybe there is a cmdlet out there I'm not aware of that will make this easier. I assume the flow will go something like > Pull all contents of drive > list in most recently modified order first > -newest 10.
First I want to apply this to installations but I would eventually like to extend it to displays most recently modified registry keys as well.
Any and all advice is greatly appreciated in advance!
Thanks!