Then re-run Get-HotFix . If Get-HotFix now returns data but the scanner still shows -21745, the scanner may have cached the old state. Restart the scanner service.
A common hidden cause: the OS believes an update is installed, but a pending reboot or a stuck "pending rename" operation confuses the API. os security patch assessment failed -21745-
Before attempting a fix, you must identify the environment. Error -21745 manifests differently depending on the OS. Then re-run Get-HotFix
When you see "os security patch assessment failed -21745-", do not restart the server immediately. Collect forensic data. os security patch assessment failed -21745-