How can I use PowerShell to check if a driver version available in the Windows Update (WU) catalog is newer than the installed version on a Windows device? I know I can get some info from the Windows Update Agent API, but it seems like I can’t query the API for versions of specific software components available. I know that in update packages there is a version number in the title, but I understand that number is regarding the update package and not any one specific file in the package.
For example, if I have abc.inf v1.0 installed on a device, how can I check if a version greater than 1.0 is available for abc.inf? I don’t necessarily need/want to install the update or file, but I can download if needed.