Skip to main content

GetSystemPatchLevel

Examines the operating system patch level and queries if it is up to date. Recommended asynchronous implementation.

Syntax​

Method ID​

#define WAAPI_MID_GET_SYSTEM_PATCH_LEVEL 50550

JSON Input Structure​

{
"input": {
"method": 50550,
"tolerance": number,
"force_timeout": number
}
}

Input Properties​

ParameterTypeDescription
tolerancenumber(optional) A tolerance factor that can be used to loosen the 'is_current' metric. The default tolerance value is '1'.
force_timeoutnumber(optional) A timeout value in seconds that can be set per method call, recommended that the value be at least 120 seconds. The default value is set off the server timeout configuration value.

JSON Output Structure​

{
"result": {
"method": 50550,
"code": number,
"timing": number,
"timestamp": string,
"is_current": boolean,
"count_behind": number,
"is_missing_service_pack": boolean,
"details": {
"ie_count_behind": number,
"dot_net_count_behind": number
}
}
}

Output Properties​

PropertyTypeDescription
result.methodnumberThe method ID that generated this result.
result.codenumberThe result code. See Result Codes.
result.timingnumberThe measured time for the method call in milliseconds.
result.timestampstringThe timestamp in seconds of when the call was made.
result.is_currentbooleanTrue if the system is up to date.
result.count_behindnumberThe number of patches the operating system is behind. Value 0 means that the system is up-to-date.
result.is_missing_service_packboolean(optional) Whether there is a service pack amongs missing patches or not.
result.detailsobject(optional) Detail information about the missing patches
result.details.ie_count_behindnumber(optional) Number of missing patches for Internet Explorer. Only on Windows.
result.details.dot_net_count_behindnumber(optional) Number of missing patches for .NET Framework. Only on Windows.

Result Codes​

CodeNameDescription
0WAAPI_OKThe operation completed successfully.
note

Other codes may be returned. See the full Result Codes reference for the complete list.

Remarks​

Error Handling​

The results of this function are determined by the error code returned by the call. If successful, WAAPI_OK or a special success code will be returned. Always check both the function return value and the result.code field in the output JSON.

Examples​

Examples will be added here demonstrating the usage of this method.

See Also​


Last updated: 2026-10-01