Skip to main content

Reference Information

What is it?​

This reference lists the exit codes that the WSUS Connector can return and the meaning of each code. Use it to interpret job results and to drive OpCon Events for follow-up actions.

Use this page to:

  • Investigate a Failed WSUS job.
  • Define OpCon Events that react to specific exit codes.
  • Interpret Job Output from a CheckOnly run versus an install run.

How to read an exit code​

The exit code is a total, not a set of positions. The connector starts from 0, or from -1 when an update failed to install, and adds a value for each condition that applied:

AddWhen
1000The run was check-only (Retrieve Update List = TRUE).
100Updates were available, or were installed.
10The server was rebooted.
5One or more warnings were returned.

So 1110 is a check-only run (1000) where updates were available (100) on a server that had been rebooted (10). And 0009 is a failed install (-1) on a server that was rebooted (+10) — which is why it does not follow the pattern of the other codes.

The tables below list the combinations you are most likely to see. Any code not listed can be read with the rule above.

Note

The Retrieve Update List setting determines whether the connector applies Windows updates or only checks for them.

Exit codes — install run​

These codes apply when Retrieve Update List = FALSE (updates are downloaded and installed).

Exit CodeDescription
0000No updates available for the Server.
0004An update failed to install, and one or more warning messages were returned. (-1 plus 5.)
0005No updates available for the Server, and one or more warning messages were returned.
0009An update failed to install after the machine was rebooted. ('Restart Server' option set and a reboot was required from a previous update.) (-1 plus 10.)
0010No updates available for the Server, and it was rebooted. ('Restart Server' option set and a reboot was required from a previous update.)
0014An update failed to install after the machine was rebooted, and warning messages were returned. (-1 plus 10 plus 5.)
0015No updates available for the Server, and it was rebooted. ('Restart Server' option set and a reboot was required from a previous update.) Additional warning messages were returned.
0100Updates available for the Server and installed with no reboot.
0105Updates available for the Server and installed. Server was not rebooted, and one or more warning messages were returned.
0110Updates available for the Server and installed. The Server was rebooted.
0115Updates available for the Server and installed. The Server was rebooted, and there were warnings returned.

Exit codes — check-only run​

These codes apply when Retrieve Update List = TRUE (the connector checks for updates without installing them).

Exit CodeDescription
1000No updates available for the Server.
1005No updates available for the Server, and one or more warning messages were returned.
1010No updates available for the Server, and it was rebooted. ('Restart Server' option set and a reboot was required from a previous update.)
1015No updates available for the Server, and it was rebooted. ('Restart Server' option set and a reboot was required from a previous update.) Additional warning messages were returned.
1100Updates available for the Server.
1105Updates available for the Server, and one or more warning messages were returned.
1110Updates are available for the Server, and it was rebooted. ('Restart Server' option set and a reboot was required from a previous update.)
1115Updates are available for the Server, and it was rebooted. ('Restart Server' option set and a reboot was required from a previous update.) Additional warning messages were returned.

Failure code​

The WSUS Connector can also fail with the following code:

Failure CodeDescription
-1The connector ended with an error. This includes an update that failed to install, and also errors that stop the connector before it reaches an update — an invalid command line, a target server it cannot reach, or a scheduling or communication failure. Use View Job Output to see which.

FAQs​

How do I tell whether updates were installed or only checked? Check-only runs add 1000, so any code of 1000 or more is a check-only run. Anything below that is an install run.

What does exit code -1 mean? The connector ended with an error. That may be an update that failed to install, or a failure earlier than that — a bad command line, an unreachable target server, or a scheduling or communication problem. The Job Output identifies which, and is the first place to look.

How do I read a code that is not in the tables? Subtract the components: 1000 for a check-only run, 100 for updates available or installed, 10 for a reboot, 5 for warnings. What remains is 0 for a clean run or -1 for a failed install. Refer to How to read an exit code.

Glossary​

TermDefinition
Exit codeThe numeric result returned by the WSUS Connector on completion. OpCon uses the exit code to determine the job's final status.
Retrieve Update ListThe connector option that controls whether updates are installed (FALSE) or only checked (TRUE).
Restart ServerThe connector option that allows the connector to reboot the target server when an update requires it.
OpCon EventAn automated action OpCon fires in response to a job status, including specific exit codes.