@echo off cd /d %~dp0 echo ********************************************************* echo Print-Problem FIX for KB5000802 / KB5000808 / echo KB5000822 v4 echo ********************************************************* for /f "tokens=*" %%a in ('%SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe "Get-Hotfix | ft HotFixID" ^| findstr /i KB5000802') do ( echo Installed Hotfix KB5000802 found.... uninstalling.... %windir%\system32\wusa.exe /uninstall /kb:5000802 ) for /f "tokens=*" %%a in ('%SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe "Get-Hotfix | ft HotFixID" ^| findstr /i KB5000808') do ( echo Installed Hotfix KB5000808 found.... uninstalling.... %windir%\system32\wusa.exe /uninstall /kb:5000808 ) for /f "tokens=*" %%a in ('%SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe "Get-Hotfix | ft HotFixID" ^| findstr /i KB5000822') do ( echo Installed Hotfix KB5000822 found.... uninstalling.... %windir%\system32\wusa.exe /uninstall /kb:5000822 )