Here’s a script that will check if a windows update exists on a device.  Yes, there are manual ways of finding out by navigating to Control Panel > Programs and Features > View Installed Updates, but sometimes it’s quicker to run a script as opposed to sifting through a list for KB references:

@echo off

set KBRESULT=
for /f %%f in ('wmic qfe get hotfixid ^| find "KB4495590"') do set "KBRESULT=%%f"

IF [%KBRESULT%] == [] (
	echo not installed                    
) else (
	echo installed 
)

 

Check If a Windows Update Exists
Comments have now been disabled. If you have a question to ask about this post please ask the community!