Skip to Main Content

Os Security Patch Assessment Failed -21745- !!hot!! Jun 2026

$Session = New-Object -ComObject "Microsoft.Update.Session" $Searcher = $Session.CreateUpdateSearcher() $Searcher.QueryHistory(0,10) | Select-Object Title, Date

If this key exists, reboot.

Once resolved, take these steps to ensure the error never returns: os security patch assessment failed -21745-

The most straightforward trigger is an incorrect credential set. This happens when passwords change, service accounts expire, or active domain policies lock out the scanner's user profile. OS Security Patch Assessment Failed | Tenable®

winmgmt /verifyrepository

Temporarily disable:

or firewalls to ensure outbound access on ports 80 and 443 is allowed. Credential or Permission Failures $Session = New-Object -ComObject "Microsoft

For Linux and macOS environments, the same principle applies: clear locks, rebuild databases, and ensure your scanning tool’s parser is compatible with the OS version’s output format.