SCCM

How to Troubleshoot a Failed SCCM Application Deployment

Follow the deployment in the order the client handles it: policy, evaluation, content, install, exit code, detection. Each step has its own log in C:\Windows\CCM\Logs. Find the first step that failed and fix that one.

The flow at a glance

StepQuestionLog
1Did policy arrive?PolicyAgent.log, PolicyEvaluator.log
2Was the application evaluated?AppIntentEval.log, AppDiscovery.log
3Did the content download?CAS.log, ContentTransferManager.log, DataTransferService.log
4Did the install run?AppEnforce.log
5What exit code came back?AppEnforce.log
6Did detection pass?AppDiscovery.log

Work on one test computer that shows the failure. Open the logs with CMTrace. The full log list is in SCCM client log files: which log to read.

Before you open a log

  1. In the console, go to Monitoring, Deployments. Open the deployment and read the error and its code.
  2. Check that the computer or user is a member of the target collection.
  3. Check that the content shows as distributed under Monitoring, Distribution Status, Content Status.
  4. Look up the error code in the SCCM error code library.

The error code often names the failed step. If it does not, walk the steps below.

Step 1: Did policy arrive?

The client learns about a deployment through policy. No policy, no deployment.

  1. On the client, open the Configuration Manager control panel.
  2. Run Machine Policy Retrieval and Evaluation Cycle. For a deployment to a user collection, run the user policy cycle.
  3. Open PolicyAgent.log. Look for a policy request and a reply from the management point.
  4. Open Software Center. Check that the application is listed.
What you seeLikely cause
Errors on every policy requestThe client cannot reach the management point. Read LocationServices.log and CcmMessaging.log.
Policy works, the application is missingThe client is not in the collection yet, or the deployment has a later available time.
The application is listed in Software CenterPolicy is fine. Go to step 2.

What each client cycle does is in SCCM client actions explained.

Step 2: Was the application evaluated?

The client now decides what to do with the application. It checks requirements, dependencies and supersedence. Then it runs the detection method.

  1. Open AppIntentEval.log. Search for the application name.
  2. Read the current state and the wanted state. Check if the application is applicable.
  3. Open AppDiscovery.log. Read the detection result for the deployment type.
What you seeMeaning
Not applicableA requirement rule failed, for example operating system, disk space or a custom rule. The install does not run.
Already detectedThe detection method is true before the install. Software Center shows "Installed" and nothing runs.
A dependency failedThe dependency has its own entries in the same logs. Troubleshoot the dependency first.
Not detected and applicableThe client will install. Go to step 3.

A required deployment also waits for its deadline and for a maintenance window. If the evaluation is fine and nothing happens, read SCCM maintenance windows explained.

Step 3: Did the content download?

The client asks the management point for a distribution point. Then it downloads the content to C:\Windows\ccmcache.

  1. Open CAS.log. Find the content request and the list of sources the client got.
  2. Open ContentTransferManager.log. Check that a download job started.
  3. Open DataTransferService.log. Check the transfer and any error code.
What you seeLikely causeRead next
No sources, or the download stays at 0 percentThe client is in no boundary group, or the content is not on a distribution point the client can use. Error 0x87D00607 means the content was not found.Boundary groups and content lookup
Not enough room in the cacheThe cache is full, or the content is larger than the cache size.Clear the SCCM cache safely
A hash mismatch after the downloadThe copy on the distribution point is damaged or out of date. Redistribute the content or update it.CAS.log
The transfer starts and failsA network, proxy or permission problem between the client and the distribution point.DataTransferService.log

Step 4: Did the install run?

Open AppEnforce.log. Search for the name of your installer file.

If the log has no entry for this application at the time of the failure, the install never started. Go back to steps 1 to 3.

If there is an entry, read these lines:

  • The command line the client ran.
  • The working directory. This is the ccmcache folder that holds the content.
  • The user context: system or user.
  • The process exit code.

Compare the command line with what you meant to run. Many failures are a typing error in the install command, a wrong file name or a missing quiet switch. For MSI installs, check the command with the msiexec command builder.

An installer that waits for a click never ends. The client runs it as SYSTEM, where nobody can see the window. AppEnforce.log then shows the start and, after the maximum run time, a timeout.

Step 5: What exit code came back?

AppEnforce.log shows the exit code and how SCCM read it: success, failure, soft restart, hard restart or fast retry. The mapping comes from the Return Codes tab of the deployment type.

Exit codeMeaningWhat to do
0SuccessGo to step 6.
3010Success, restart neededCounts as success. Go to step 6.
1641Success, the installer started a restartCounts as success.
1618Another Windows Installer install is runningThe client retries later. Check what else installs at the same time.
1602The user cancelled the installCheck that the command is really silent.
1603Fatal error in an MSI installAdd /l*v logging to the command. Search the MSI log for Return value 3.

For any other code, use the Windows error code lookup. Some installers use their own codes. Check the vendor documentation, then add the code on the Return Codes tab if it means success.

To repeat the failure outside SCCM, run the same command as SYSTEM on the test computer. Start a SYSTEM command prompt with PsExec: psexec -s -i cmd.exe. Change to the ccmcache folder from AppEnforce.log and run the command. An install that works as an administrator and fails as SYSTEM often needs a mapped drive, a user profile or a visible window.

Step 6: Did detection pass?

After a success exit code, the client runs the detection method again. Open AppDiscovery.log and read the entries right after the install time.

What you seeMeaning
DetectedThe deployment succeeded. If the console still shows a failure, wait for the next state message or run the Application Deployment Evaluation Cycle.
Not detected, error 0x87D00324The installer said success, and the detection method cannot find the application.

With 0x87D00324, first check by hand if the application is really there. If it is, the detection method is wrong: a path, a version, a product code or a 32-bit setting. If it is not, the installer returned 0 without doing its work.

The error page is 0x87D00324. The rules and a test method are in SCCM detection methods explained.

After the fix

  1. If you changed the content, update the content on the distribution points.
  2. If you changed the deployment type, wait for the new revision to reach the client.
  3. On the client, run Machine Policy Retrieval and Evaluation.
  4. Wait a minute or two. Then run Application Deployment Evaluation, or select Retry in Software Center.
  5. Watch AppEnforce.log live in CMTrace. See how to use CMTrace to read SCCM logs.

Test the fix on one computer before you let the deployment run on the whole collection.

SCCM MECM application deployment troubleshooting AppEnforce.log client logs
✉

Get new articles in your inbox

SCCM guides, AI tools, automation tips — sent when published. No spam.

Keep reading

Comments