WS1 Status Code PowerShell Function

So this is just a quick and dirty function for translating the status code in the HKEY_LOCAL_MACHINE\SOFTWARE\AirWatchMDM\ area of the registry.

The status code translation is based on this post: Workspace ONE UEM Error Code – My Blog (debay.blog), and I will update the function if I get a more definitive list from VMware. The question has been asked 🙂

Real simple to use, its just Get-StatusCode -code {code}

Doesn’t make much sense unless you are looking to use it for something like translating the Queued Apps GUIDs to the actual name of the application, or maybe writing a script to query the install log for an app.

Function Get-StatusCode
    {
    param
        (
        $Code
        )
    $code="{0:x}" -f $code
    switch($code)
        {
        000 {Return "Deployment operation queued"}
        100 {Return "First detection in progress"}
        101 {Return "First detection failed"}
        102 {Return "First detection successful"}

        200 {Return "Check reference count in progress"}
        201 {Return "Check reference count failed"}
        202 {Return "Check reference count successful"}

        300 {Return "Requirements evaluation in progress"}
        301 {Return "Requirements evaluation failed"}
        302 {Return "Requirements evaluation successful"}

        400 {Return "Dependency deployment in progress"}
        401 {Return "Dependency failed"}
        402 {Return "Dependency successful"}

        500 {Return "Sanitize cache in progress"}
        501 {Return "Sanitize cache failed"}
        502 {Return "Sanitize cache successful"}
        600 {Return "Pending Network Connectivity"}
        601 {Return "Download in Progress"}
        602 {Return "Pending Download Retry"}
        603 {Return "Download Content Failed"}
        604 {Return "Download Content Successful"}
        700 {Return "Transform cache in progress (decompressing zip packages)"}
        701 {Return "Transform cache failed"}
        702 {Return "Transform cache successful"}

        800 {Return "Pending user session"}
        801 {Return "Install in progress"}
        802 {Return "Pending deployment retry"}
        803 {Return "Deployment failed"}
        804 {Return "Deployment successful"}
        805 {Return "Pending reboot"}

        900 {Return "Final detection evaluation in progress"}
        901 {Return "Final detection failed"}
        902 {Return "Final detection successful"}

        00000000 { Return "Deployment Operation Suspended"}
        00000602 { Return "Deployment suspended — pending download retry"}
        00000802 { Return "Deployment suspended — pending install retry"}
        40000000 { Return "Deployment operation failed?"}
        40000901 { Return "Final detection failed for deployment?"} # code TBC
        00000603 { Return "Deployment failed — download failed"}
        40000803 { Return "Deployment failed — installation failed"}
        80000000 { Return "Deployment operation succeeded"}
        80000101 { Return "First Detection Failed?"} #Code TBC
        80000402 { Return "Application is externally installed"}
        80000502 { Return "Deployment not needed. Already installed?"} # code TBC
        80000902 { Return "Deployment succeeded — final detection passed"}   
        default { Return $code}
        }
    }

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.