SCCM/MECM issue 0x2(2) when installing software via Software Center

Eaven HUANG 2,136 Reputation points
2022-04-07T06:46:45.267+00:00

Dear experts,

Please help to refer to attached screenshot, any idea why this occurred and how to fix it?
I've bee googling around but no clue.

190834-sccm-0x22.png

Microsoft Configuration Manager
0 comments No comments
{count} votes

Accepted answer
  1. AllenLiu-MSFT 41,916 Reputation points Microsoft Vendor
    2022-04-08T08:26:41.817+00:00

    Hi, @Eaven HUANG

    Thanks very much for your feedback. We're glad that the problem is solved now. Here's a short summary for the problem, we believe this will help other users to search for useful information more quickly.

    Problem/Symptom:
    When install application WeChat by SCCM, the installation failed, and the error message is 0x2(2).

    Possible Reason:
    After checking AppEnforce.log on client, incorrct detection rule caused this issue.

    Solution/Workaround:
    Revised the detection rule and it could be installed without any code.

    we warmly welcome you to post in this forum again.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


4 additional answers

Sort by: Most helpful
  1. AllenLiu-MSFT 41,916 Reputation points Microsoft Vendor
    2022-04-07T09:12:12.357+00:00

    Hi, @Eaven HUANG

    Thank you for posting in Microsoft Q&A forum.

    For the failure of application installation, we can check the AppEnforce.log on client.

    The log is located at C:\Windows\CCM\Logs\AppEnforce.log


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  2. Garth 5,801 Reputation points
    2022-04-07T10:11:49.99+00:00

    You will need to have the setup create a log file and you will need to review it to see why it is failing.


  3. Garth 5,801 Reputation points
    2022-04-07T12:44:49.2+00:00

    What do the Logs say is the problem with the uninstall?

    0 comments No comments

  4. Eaven HUANG 2,136 Reputation points
    2022-04-08T06:35:42.743+00:00

    Dear all,

    I reran it and the error code gone. No concerns so far,

    Thanks a lot for your time.

    0 comments No comments