API Reference
UpdateGaps
Computes missing security updates by comparing installed KBs with MSRC PatchDetails. Works for local and remote without requiring WUA on remote hosts.
Inheritance
- Object
- UpdateGaps
Methods
public static Task<UpdateGapAssessmentResult> GetMissingSecurityAssessmentAsync(String computer, DateTime asOf, CancellationToken ct = null) #Task<UpdateGapAssessmentResult>Computes missing security patches together with the resolved product mapping used for MSRC applicability.
Parameters
- computer System.String
- Target computer name or IP.
- asOf System.DateTime
- Reference date (patches since the month of this date are considered).
- ct System.Threading.CancellationToken = null
- Cancellation token.
Returns
Resolved product mapping and missing security updates.
public static Task<UpdateGapAssessmentResult> GetMissingSecurityAssessmentAsync(String computer, DateTime asOf, TimeSpan osQueryTimeout, CancellationToken ct) #Task<UpdateGapAssessmentResult>Computes missing security patches together with the resolved product mapping across a month lookback window.
Parameters
- computer System.String
- Target computer name or IP.
- asOf System.DateTime
- Reference date (month anchor for lookback collection).
- lookbackMonths System.Int32
- Number of months to collect, counting backward from asOf month (inclusive).
- ct System.Threading.CancellationToken = null
- Cancellation token.
Returns
Resolved product mapping and missing security updates.
GetMissingSecurityAssessmentAsync(System.String computer, System.DateTime asOf, System.TimeSpan osQueryTimeout, System.Threading.CancellationToken ct) #Computes missing security patches together with the resolved product mapping using an explicit OS query timeout.
Parameters
- computer System.String
- Target computer name or IP.
- asOf System.DateTime
- Reference date (patches since the month of this date are considered).
- osQueryTimeout System.TimeSpan
- Timeout used when querying OS details to detect product version.
- ct System.Threading.CancellationToken
- Cancellation token.
Returns
Resolved product mapping and missing security updates.
public static async Task<UpdateGapAssessmentResult> GetMissingSecurityAssessmentAsync(String computer, DateTime asOf, TimeSpan osQueryTimeout, Int32 lookbackMonths, CancellationToken ct) #Task<UpdateGapAssessmentResult>Computes missing security patches together with the resolved product mapping using an explicit OS query timeout and month lookback window.
Parameters
- computer System.String
- Target computer name or IP.
- asOf System.DateTime
- Reference date (month anchor for lookback collection).
- osQueryTimeout System.TimeSpan
- Timeout used when querying OS details to detect product version.
- lookbackMonths System.Int32
- Number of months to collect, counting backward from asOf month (inclusive).
- ct System.Threading.CancellationToken
- Cancellation token.
Returns
Resolved product mapping and missing security updates.
public static Task<IReadOnlyList<PatchGapInfo>> GetMissingSecurityAsync(String computer, DateTime asOf, CancellationToken ct = null) #Task<IReadOnlyList<PatchGapInfo>>Computes missing security patches for a computer as of a reference date.
Parameters
- computer System.String
- Target computer name or IP.
- asOf System.DateTime
- Reference date (patches since the month of this date are considered).
- ct System.Threading.CancellationToken = null
- Cancellation token.
public static async Task<IReadOnlyList<PatchGapInfo>> GetMissingSecurityAsync(String computer, DateTime asOf, TimeSpan osQueryTimeout, CancellationToken ct) #Task<IReadOnlyList<PatchGapInfo>>Computes missing security patches for a computer across a month lookback window.
Parameters
- computer System.String
- Target computer name or IP.
- asOf System.DateTime
- Reference date (month anchor for lookback collection).
- lookbackMonths System.Int32
- Number of months to collect, counting backward from asOf month (inclusive).
- ct System.Threading.CancellationToken = null
- Cancellation token.
GetMissingSecurityAsync(System.String computer, System.DateTime asOf, System.TimeSpan osQueryTimeout, System.Threading.CancellationToken ct) #Computes missing security patches using an explicit OS info query timeout.
Parameters
- computer System.String
- Target computer name or IP.
- asOf System.DateTime
- Reference date (patches since the month of this date are considered).
- osQueryTimeout System.TimeSpan
- Timeout used when querying OS details to detect product version.
- ct System.Threading.CancellationToken
- Cancellation token.
public static async Task<IReadOnlyList<PatchGapInfo>> GetMissingSecurityAsync(String computer, DateTime asOf, TimeSpan osQueryTimeout, Int32 lookbackMonths, CancellationToken ct) #Task<IReadOnlyList<PatchGapInfo>>Computes missing security patches using an explicit OS query timeout and month lookback window.
Parameters
- computer System.String
- Target computer name or IP.
- asOf System.DateTime
- Reference date (month anchor for lookback collection).
- osQueryTimeout System.TimeSpan
- Timeout used when querying OS details to detect product version.
- lookbackMonths System.Int32
- Number of months to collect, counting backward from asOf month (inclusive).
- ct System.Threading.CancellationToken
- Cancellation token.
Inherited Methods
public override Boolean Equals(Object obj) #BooleanParameters
- obj Object