Cannot install new version of Configuration Manager Agent

Duchemin, Dominique 2,006 Reputation points
2023-02-17T02:35:00.03+00:00

Hello,

I am trying to install CM Agent from the console and /or manually 5.00.9078.1000 on a machine which as having an old version...4.00.6487.2000 installed by GPO.

I am getting an error:

=== Verbose logging started: 2/16/2023  18:25:58  Build type: SHIP UNICODE 5.00.9600.00  Calling process: C:\Windows\ccmsetup\ccmsetup.exe ===
MSI (c) (34:20) [18:25:58:587]: Resetting cached policy values
MSI (c) (34:20) [18:25:58:587]: Machine policy value 'Debug' is 0
MSI (c) (34:20) [18:25:58:587]: ******* RunEngine:
           ******* Product: {2609EDF1-34C4-4B03-B634-55F3B3BC4931}
           ******* Action: 
           ******* CommandLine: **********
MSI (c) (34:20) [18:25:58:587]: Client-side and UI is none or basic: Running entire install on the server.
MSI (c) (34:20) [18:25:58:587]: Grabbed execution mutex.
MSI (c) (34:20) [18:25:58:607]: Cloaking enabled.
MSI (c) (34:20) [18:25:58:607]: Attempting to enable all disabled privileges before calling Install on Server
MSI (c) (34:20) [18:25:58:611]: Incrementing counter to disable shutdown. Counter after increment: 0
MSI (s) (4C:9C) [18:25:58:620]: Running installation inside multi-package transaction {2609EDF1-34C4-4B03-B634-55F3B3BC4931}
MSI (s) (4C:9C) [18:25:58:620]: Grabbed execution mutex.
MSI (s) (4C:8C) [18:25:58:622]: Resetting cached policy values
MSI (s) (4C:8C) [18:25:58:622]: Machine policy value 'Debug' is 0
MSI (s) (4C:8C) [18:25:58:622]: ******* RunEngine:
           ******* Product: {2609EDF1-34C4-4B03-B634-55F3B3BC4931}
           ******* Action: 
           ******* CommandLine: **********
MSI (s) (4C:8C) [18:25:58:622]: Machine policy value 'DisableUserInstalls' is 0
MSI (s) (4C:8C) [18:25:58:622]: Warning: Local cached package 'C:\Windows\Installer\650f2150.msi' is missing.
MSI (s) (4C:8C) [18:25:58:622]: User policy value 'SearchOrder' is 'nmu'
MSI (s) (4C:8C) [18:25:58:623]: User policy value 'DisableMedia' is 0
MSI (s) (4C:8C) [18:25:58:623]: Machine policy value 'AllowLockdownMedia' is 0
MSI (s) (4C:8C) [18:25:58:623]: SOURCEMGMT: Media enabled only if package is safe.
MSI (s) (4C:8C) [18:25:58:623]: SOURCEMGMT: Looking for sourcelist for product {2609EDF1-34C4-4B03-B634-55F3B3BC4931}
MSI (s) (4C:8C) [18:25:58:623]: SOURCEMGMT: Adding {2609EDF1-34C4-4B03-B634-55F3B3BC4931}; to potential sourcelist list (pcode;disk;relpath).
MSI (s) (4C:8C) [18:25:58:623]: SOURCEMGMT: Now checking product {2609EDF1-34C4-4B03-B634-55F3B3BC4931}
MSI (s) (4C:8C) [18:25:58:623]: SOURCEMGMT: Media is enabled for product.
MSI (s) (4C:8C) [18:25:58:623]: SOURCEMGMT: Attempting to use LastUsedSource from source list.
MSI (s) (4C:8C) [18:25:58:623]: SOURCEMGMT: Trying source C:\Windows\ccmsetup\{4CD82FBB-0AFC-4864-A089-15364DF5F14B}\.
MSI (s) (4C:8C) [18:25:58:623]: Note: 1: 2203 2: C:\Windows\ccmsetup\{4CD82FBB-0AFC-4864-A089-15364DF5F14B}\client.msi 3: -2147287037 
MSI (s) (
MSI (s) (4C:8C) [18:25:58:623]: Note: 1: 1706 2: -2147483647 3: client.msi 
MSI (s) (4C:8C) [18:25:58:623]: SOURCEMGMT: Processing net source list.
MSI (s) (4C:8C) [18:25:58:623]: Note: 1: 1706 2: -2147483647 3: client.msi 
MSI (s) (4C:8C) [18:25:58:623]: SOURCEMGMT: Processing media source list.
MSI (s) (4C:8C) [18:25:58:623]: Note: 1: 2203 2:  3: -2147287037 
MSI (s) (4C:8C) [18:25:58:623]: SOURCEMGMT: Source is invalid due to missing/inaccessible package.
MSI (s) (4C:8C) [18:25:58:623]: Note: 1: 1706 2: -2147483647 3: client.msi 
MSI (s) (4C:8C) [18:25:58:623]: SOURCEMGMT: Processing URL source list.
MSI (s) (4C:8C) [18:25:58:623]: Note: 1: 1402 2: UNKNOWN\URL 3: 2 
MSI (s) (4C:8C) [18:25:58:623]: Note: 1: 1706 2: -2147483647 3: client.msi 
MSI (s) (4C:8C) [18:25:58:623]: Note: 1: 1706 2:  3: client.msi 
MSI (s) (4C:8C) [18:25:58:624]: SOURCEMGMT: Failed to resolve source
MSI (s) (4C:8C) [18:25:58:624]: MainEngineThread is returning 1612
MSI (s) (4C:9C) [18:25:58:624]: User policy value 'DisableRollback' is 0
MSI (s) (4C:9C) [18:25:58:624]: Machine policy value 'DisableRollback' is 0
MSI (s) (4C:9C) [18:25:58:624]: Incrementing counter to disable shutdown. Counter after increment: 0
MSI (s) (4C:9C) [18:25:58:624]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2 
MSI (s) (4C:9C) [18:25:58:625]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2 
MSI (s) (4C:9C) [18:25:58:625]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied.  Counter after decrement: -1
MSI (c) (34:20) [18:25:58:625]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied.  Counter after decrement: -1
MSI (c) (34:20) [18:25:58:626]: MainEngineThread is returning 1612
=== Verbose logging stopped: 2/16/2023  18:25:58 ===


Microsoft Security | Intune | Configuration Manager | Other
0 comments No comments
{count} votes

Accepted answer
  1. AllenLiu-MSFT 49,311 Reputation points Microsoft External Staff
    2023-02-17T07:17:18.6833333+00:00

    Hi, @Duchemin, Dominique

    Thank you for posting in Microsoft Q&A forum.

    After running ccmsetup /uninstall, try below steps to uninstall client agent fully:

    1. Once that is complete delete the following files

    C:\Windows\ccmsetup

    C:\Windows\ccm

    C:\Windows\SMSCFG.ini

    2.Remove the Machine Certs from the SMS store

    To do this

    Start>Run>MMC>Click File>Add/Remove Snap-in…>Certificates>Click Add>Computer Account>Local Computer>SMS

    Delete the certificates in the SMS store.

    3.Run the below PowerShell command on the client to remove all the leftover traces of CCM in WMI.

    Get-WMIObject -namespace "root" -query "SELECT * FROM __Namespace where name = 'ccm'" | remove-wmiobject


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

    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.

    1 person found this answer helpful.
    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Duchemin, Dominique 2,006 Reputation points
    2023-02-17T02:36:29.9933333+00:00

    The agent does not installed and the ccmsetup failed...

    Adding client deployment state message. ccmsetup 2/16/2023 6:25:58 PM 26716 (0x685C)

    Failed to send state message via the existing client. Error 0x80041002 ccmsetup 2/16/2023 6:25:58 PM 26716 (0x685C)

    Failed to send status 301. Error (80041002) ccmsetup 2/16/2023 6:25:58 PM 26716 (0x685C)

    'Configuration Manager Client Retry Task' is scheduled to run at 02/16/2023 11:25:58 PM (local) 02/17/2023 07:25:58 AM (UTC) time with arguments ' /uninstall /RetryWinTask:1'. ccmsetup 2/16/2023 6:25:58 PM 26716 (0x685C)

    Folder 'Microsoft\Microsoft\Configuration Manager' not found. Task does not exist. ccmsetup 2/16/2023 6:25:58 PM 26716 (0x685C)

    Task 'Configuration Manager Client Retry Task' not found in the scheduler task cache. ccmsetup 2/16/2023 6:25:58 PM 26716 (0x685C)

    Successfully created task 'Configuration Manager Client Retry Task' ccmsetup 2/16/2023 6:25:58 PM 26716 (0x685C)

    CcmSetup failed with error code 0x8007064c ccmsetup 2/16/2023 6:25:58 PM 26716 (0x685C)

    Any idea?

    Thanks,

    Dom

    0 comments No comments

  2. Duchemin, Dominique 2,006 Reputation points
    2023-02-17T02:41:41.6733333+00:00

    I Tried

    ccmsetup /uninstall

    ccmclean.exe /all /logdir:c:\source /removehistory

    but still erroring on the installation...

    Thanks,

    Dom

    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.