Friday, May 6, 2016

SCCM Client Repair

http://www.sgautomahjong.sg/media/catalog/category/Repair_Logo_1.jpg 


The following examples can be used to repair the SCCM 2012 R2 client.
When the SCCM Client repair is running, monitor for the running the Windows process “ccmrepair.exe”.

Repair SCCM Client using SCCM Client Command Line:
Local Computer:  C:\Windows\CCM\ccmrepair.exe


Repair SCCM Client using WMIC Command Line:
Local Computer:
WMIC /namespace:\\root\ccm path sms_client CALL RepairClient
Remote Computer:
WMIC /node:[COMPUTER] /namespace:\\root\ccm path sms_client CALL RepairClient
Repair SCCM Client using VBScript: Local Computer:
Set oSCCM = GetObject(“winmgmts:{impersonationLevel=impersonate}!\.\root\ccm:sms_client”)
oSCCM.RepairClient()
Remote Computer:
Set oSCCM = GetObject(“winmgmts:{impersonationLevel=impersonate}!\\[COMPUTER]\root\ccm:sms_client”)
oSCCM.RepairClient()
Repair SCCM Client using Windows PowerShell: Local Computer:
$oSCCM = [wmiclass] “\root\ccm:sms_client”
$oSCCM.RepairClient()
Remote Computer:
$oSCCM = [wmiclass] “\\[COMPUTER]\root\ccm:sms_client”
$oSCCM.RepairClient()