Vbs Script To Repair A Remote SMS Client

 

This script will take a machine name from the input box and force the SMS client repair cycle on the remote machine based on Michael Niehaus's article below:

 

VBS Script:

 

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

 

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

SmsClient.RepairClient

WScript.Echo "Repair Is In Progress For " & UCase(strComputer)

 

 

Repair the SMS client

http://www.myitforum.com/articles/8/view.asp?id=6506

 

Published Sunday, September 24, 2006 7:34 AM by dhite
Filed under:

Comments

No Comments