Script to patch Windows Server VMWare templates – part 1

I know, that in the era of IaC, OS templates should be gone, but still they’re alive. During my work I faced the situation, that I had to patch monthly about 30 VM Windows Server VMWare templates with only specified patches, whch were previously approved by the relevant team. Patches were defined in the SCCM – for the I wrote another script to gather all needed patches and create an ISO which will be the entry point for the patching script – but this is a different story. Continue reading