Determine if hotfix is applied via batch file
We have a complex piece of software we are getting ready to deploy through KACE. This software requires specific hotfixes from MS and they have to be installed in a specific order and a reboot has to happen between each.
I am going to create a single batch file to automate this process and create the package for KACE.
How can you determine if a KB has been installed via a batch file?
I want something such as
if KB111111 (the first patch) is not installed
execute kb111111 with a reboot switch
if kb222222 (second patch) is not installed
execute kb222222 with a reboot switch
and so on.
Once these are installed the software will install.