MDT : Application Dell Command Update 4.7.1 returned an unexpected code 2

Yan, Jayden 81 Reputation points
2023-01-09T07:32:09.933+00:00

When I use my MDT to deploy Dell Command Update to PC, I got the error code 2.
But I found the software deployed successfully, Why I also get this error code? and others software is normal.
277364-dcu.png

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,236 questions
Microsoft Deployment Toolkit
Microsoft Deployment Toolkit
A collection of Microsoft tools and documentation for automating desktop and server deployment. Previously known as Microsoft Solution Accelerator for Business Desktop Deployment (BDD).
904 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Limitless Technology 44,406 Reputation points
    2023-01-10T08:36:37.353+00:00

    Hello there,

    The Return code of 2 generally means that a file was not found. As the Dell command update has passed through may be this might a different error message meaning in your scenario. Can you see any other Event ID being generated to narrow down the issue?

    Check the bdd.log file and see what it says. Per my personal experience, unexpected code 2 usually means file not found, incorrect file path, or permissions.

    The below thread discusses the same issue and you can try out some troubleshooting steps from this and see if that helps you to sort the Issue.

    https://social.technet.microsoft.com/Forums/en-US/12faf5f9-0c1a-4922-9fdf-b249ed4588fa/unexpected-return-code-2-when-installing-applications?forum=mdt

    https://learn.microsoft.com/en-us/answers/questions/355159/mdt-the-application-returned-an-unexpected-code-2.html

    Hope this resolves your Query !!

    --If the reply is helpful, please Upvote and Accept it as an answer–

    1 person found this answer helpful.

  2. Brett Webb 0 Reputation points
    2023-01-23T23:44:14.1666667+00:00

    I was getting the same error code on my installation, but finding that the application was installed. After searching I found that Error Code 2 for Dell Command Update indicates that a reboot is required.

    [https://blog.loftinnc.com/dell-update-package-command-line-reference-and-exit-codes

    I wish there was some uniformity between vendors when it comes to error codes.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.