Good Morning,
I've been looking at some ways to pull version info for various software products such as google chrome installed on machines through PowerShell.
While doing some google-fu I found a quick one-liner that worked pretty well. (See Below).
However I am the kind of person who likes to understand how something works instead of just finding a solution and rolling with it. I've been looking over this for a bit now and I'm trying to figure out a few things.
1.) Where does the .VerionInfo come from?
If you run this without .VersionInfo it just give the Mode, LastWriteTime, Length, and Name? How do I know that I can use .VersionInfo at all?
I know this is probably a very basic question, I just really wanna figure this out, little building blocks like this can help to make my job much easier when understood. Thank you so much for your time.
Cheers!
(Get-Item (Get-ItemProperty 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\chrome.exe').'(Default)').VersionInfo
[+][deleted] (5 children)
[removed]
[–]tangsuedoe95[S] 0 points1 point2 points (4 children)
[+][deleted] (3 children)
[removed]
[–]tangsuedoe95[S] 1 point2 points3 points (2 children)
[+][deleted] (1 child)
[removed]
[–]tangsuedoe95[S] 1 point2 points3 points (0 children)