Hello Robert,
Below is a step-by-step guide you can follow whenever a newly imaged Windows 11 PC needs a fresh ConfigMgr/SCCM client install.
I) Uninstall the existing client
- Open an elevated PowerShell or CMD window:
Win + X → Terminal (Admin)
- Run the built-in uninstall command:
ccmsetup /uninstall
- Wait for the process to finish: Watch C:\Windows\ccmsetup\Logs\ccmsetup.log until you see the entry
CcmSetup is exiting with return code 0
.
II) Remove leftovers (recommended)
Action | Purpose |
---|---|
Delete C:\Windows\CCM and C:\Windows\ccmsetup | Clears any corrupt files |
Delete C:\Windows\CCM and C:\Windows\ccmsetup | Clears any corrupt files |
Delete C:\Windows\CCMCache | Frees disk space & resets cache |
Open Services.msc and stop SMS Agent Host (if still running) | Ensures no handles are open |
(Rare) WMI repair:
winmgmt /verifyrepository
If “WMI repository is inconsistent,” run winmgmt /salvagerepository
| Fixes WMI errors that prevent re-enrollment |
Reboot once the cleanup is complete.
III) Reinstall the client
A) Manual install (works offline)
\\<SiteServer>\SMS_<SiteCode>\Client\ccmsetup.exe ^
/mp:<MP_FQDN> ^
SMSSITECODE=<SiteCode> ^
SMSMP=<MP_FQDN> ^
/source:\\<SiteServer>\SMS_<SiteCode>\Client ^
/skipprereq:scclient_x64.msi
- Replace
<SiteCode>
(e.g., ABC) and<MP_FQDN>
with your values. - Add
/logon
if you want it to pick up AD site assignment automatically. - If the device is on the VPN, use the VPN-resolvable FQDN.
B) Client Push from the console
- Assets and Compliance → Devices → Right-click PC → Install Client
- Tick “Uninstall existing ConfigMgr client” and “Restart if required”.
IV) Verify a healthy install
- Logs
-
C:\Windows\ccmsetup\Logs\ccmsetup.log
-> look forReturn code 0
. -
C:\Windows\CCM\Logs\ClientIDManagerStartup.log
-> look for “Successfully registered.”
-
- Control Panel -> Configuration Manager should show:
- Correct Site Code under Site Tab.
- Client Version matches your current release (e.g., 5.00.9128.1000).
- Console status -> Device should flip to “Active” and “Client = Yes” within a few minutes.
References:
Microsoft Learn. Manage clients.
Microsoft Learn. Client installation parameters and properties.
Microsoft Learn. Deploy clients to Windows computers.
Microsoft Q&A. How to troubleshoot SCCM client installation issue.
I hope this helps.
Best regards,
Finn Dang