Description: Pulls all install history from MacOS - tested on Catalina and Big Sur.
What The Data Shows: The following query will pull the raw data from InstallHistory.plist, which includes installed applications and the time they were installed. (The system report on installed applications appears to be derived from the InstallHistory.plist file).
It's also useful when looking for specific security updates as os_version does not record MacOS security updates. The package_install_history table does not appear to be supported on all versions of MacOS in 4.5.0 (when tested, it returned "Not Supported" for a Big Sur host, I believe this issue was fixed in version 4.6.0 - PackageIdentifiers are optional in InstallHistory.plist (#6767)), otherwise I would recommend using package_install_history instead to pull this information.