I am working on some SharePoint 2013 and SharePoint 2016 on-premises farms. and on some farms we install a full CU each 6 month, then we run the product configuration wizard. for those farms we do the following as part of the backup policy:-
- Back up the full farm using
Backup-SPFarmon daily basis.
- also we backup each site collection separately.
now for the farms which we install full CU each 6 months, we can be sure if the sharepoint server crashed for a reason or another, we can build a fresh sharepoint farm, install the same CU which we install on the original crashed farm, restore the farm.i did some test and everything worked well.
but on some farms, our customers install security updates each 1-3 months, and those security updates contain some sharepoint security updates, which might affect the farm build number. of course for those customers we mentioned to them, that they need to run the product configuration wizard, after installing any sharepoint security updates.. but for those farms we can easily lose track of the current sharepoint farm patches and updates. For example let say the farm crashes and we wanted to create a fresh sharepoint farm to restore the backup-ed farm, then we will not be sure of what are the latest patches and updates that were installed on the crashed server..
So my question is, if there is a way we can extract all the sharepoint patches and updates that are currently installed inside SharePoint 2013 or 2016 farm? so if this farm crashes we can go back to this list to know exactly what we should install inside the fresh farm which we might need to create, to restore the backup-ed farm.. Thanks