Vbs Script To Repair A Remote SMS Client With Error Handling

 

This is a modified version of my original post from last year entitled: Vbs Script To Repair A Remote SMS Client with error handling provided for Advanced clients.

 

Note: After the script has executed review the CcmRepair log file to verify its success.

 

VBS Script:

 

On Error Resume Next

 

strComputer = InputBox("Enter Client Machine To Repair")

Set SmsClient = GetObject("winmgmts://" & strComputer & "/Root/Ccm:SMS_Client")

 

If Err <> 0 Then

MsgBox "Error: " & "(" & Err.Number & ") " & Err.Description

 

Else

SmsClient.RepairClient

MsgBox "Repair Is In Progress For " & UCase(strComputer)

 

End If

 

 

Published Sunday, March 09, 2008 8:29 AM by dhite
Filed under:

Comments

# Client health solutions

Summary: we talk about client health a lot on this blog, but ultimately we all want solutions. What solutions

Sunday, March 23, 2008 2:21 PM by Paul Thomsen at myITforum.com