Troubleshooting VSCode Installation Issues via SCCM

DukenTee 205 Reputation points
2024-12-24T11:18:47.0066667+00:00

Using SCCM to deploy VSCode to client devices, but the installation gets stuck for two hours and reports the following error in the log:

Exceeded timeout of 120 minutes while waiting for process 15120 to finish.
WaitForRunningProcess failed. Error 0x87d00213.

What are the troubleshooting steps for this issue?

Microsoft Configuration Manager
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Mohit Pandey 75 Reputation points
    2024-12-24T11:26:10.12+00:00

    Brother there could be multiple reasons from which you're facing this error, I have listed some of the common methods that can be used to fix this.

    1. Increase the Timeout Value

    The default timeout is 120 minutes, but if the installation takes longer, you might want to increase this. You can modify the timeout settings in SCCM by doing the following:

    • Go to Administration > Client Settings in the SCCM console.
    • Right-click your client settings and select Properties.
    • Under the Deployment tab, you can increase the "Maximum wait time for deployment" to a higher value (e.g., 240 minutes).

    This will allow more time for the process to complete before SCCM gives up.

    1. Check the Installation Command

    Review the command line you're using to deploy VSCode. If it's a custom installation, ensure there are no issues like missing parameters or conflicting flags that might cause it to hang. Typically, the VSCode installer has options for silent installation (/silent or /verysilent), so make sure you are using the correct silent install flags.

    Example:

    bash
    Copy code
    VSCodeSetup-x64-<version>.exe /verysilent /norestart
    
    1. Check Client Device Logs

    Review the client-side log files, specifically:

    • AppEnforce.log (Located in C:\Windows\CCM\Logs\) – It will give you more details about why the installation is failing or taking too long.
    • execmgr.log – This will tell you about the execution status of the deployment.

    Look for any errors or warnings that might indicate what's causing the hang-up.

    1. Check for System Resource Constraints

    If the client device is under heavy load or has limited resources (e.g., CPU, RAM), it might delay the installation process. Check if the device is busy with other processes or if there's not enough available disk space. You can also try deploying to a different client to see if the issue is device-specific.

    1. Test the Deployment Manually

    To verify the issue isn't with the SCCM deployment itself, try manually installing VSCode on a client machine using the same command line you're using in SCCM. This will help you determine whether the issue is specific to the SCCM deployment or with the VSCode installer itself.

    1. Check Network and Connectivity

    Ensure that the client has good network connectivity to the SCCM distribution point, and that there are no network issues that could cause delays or timeout issues during the installation.

    1. Review the SCCM Package Source

    Make sure the VSCode installation files on the SCCM distribution point are not corrupt. If in doubt, re-upload the VSCode setup package to SCCM and re-distribute it to the clients.

    1. Check for Conflicting Applications or Policies

    If there are any other applications, antivirus programs, or GPOs that might interfere with the VSCode installation, they could be causing the installer to hang. Try temporarily disabling antivirus or checking for conflicting software during the installation.

    1. Recheck the Client Installation Status

    Sometimes, SCCM clients might have issues with their own configurations or the installation status can become out of sync. Try restarting the SCCM client service on the affected machine or even reinstalling the SCCM client to ensure everything is working correctly.

    0 comments No comments

  2. AllenLiu-MSFT 47,081 Reputation points Microsoft Vendor
    2024-12-25T02:06:28.65+00:00

    Hi, @DukenTee

    Thank you for posting in Microsoft Q&A forum.

    To troubleshoot the installation issue of VSCode via SCCM where the process exceeds the timeout, consider the following steps:

    1. Ensure that no other installations or updates are running concurrently that might be causing the installation to hang.
    2. If the installation typically takes longer than 120 minutes, consider increasing the timeout setting for the deployment in SCCM.
    3. Try installing VSCode manually on a test machine to see if the issue persists outside of SCCM. This can help determine if the problem is specific to the SCCM deployment.

    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 "Add comment".

    0 comments No comments

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.