Check If a Windows Update Exists

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 
)