When Client Profile Updating Utility finishes, it sets the value of the errorlevel variable based on its exit status. The following bit mask can be used to retrieve Client Profile Updating Utility completion status from the errorlevel code:

0

CPUU_CANNOT_START

1

CPUU_SUCCESS

2

CPUU_NO_SWITCH_MSG

4

CPUU_SWITCH_ERR

8

CPUU_USER_ABORT

16

CPUU_GLOBAL_ERR

32

CPUU_CRASH

64 CPUU_FAILED_TO_WRITE_LOG
128 CPUU_FAILED_TO_CREATE_TMP_DIR
256 CPUU_FAILED_TO_COPY_LOCALLOG_TO_REMOTE_SHARE
512 CPUU_INVALID_SWITCH_MSG

Note: CPUU returns CPUU_CRASH if the application crashes.

If you stop the CPUU process by using Task Manager, you receive the CPUU_SUCCESS return code.

The following table lists the errorlevel flags that can be set for each mode Client Profile Updating Utility runs in:

Status Return Code (errorlevel)
Exit after running in Update mode.

CPUU_CANNOT_START—Nothing to update.

CPUU_SUCCESS—One or more profiles were updated.

CPUU_NO_SWITCH_MSG—No Switch Message was found for one or more profiles.

CPUU_SWITCH_ERR—Update failed for one or more profiles.

CPUU_GLOBAL_ERR—Update failed. CPUU_USER_ABORT—Update was aborted by the user.

Exit after running in Undo mode.

CPUU_CANNOT_START—Nothing to undo.

CPUU_SUCCESS—One or more profiles were un-done.

CPUU_SWITCH_ERR—Undo failed for one or more profiles.

Exit after running in Cleanup mode.

CPUU_CANNOT_START—Nothing to clean up.

CPUU_SUCCESS—One or more profiles were cleaned up.

CPUU_USER_ABORT—Cleanup was aborted by the user.

CPUU_GLOBAL_ERR—Cleanup failed.