SMS ClientTroubleShooter - RonsWebRemoteTools

Published Saturday, January 10, 2009 4:10 PM

Here is an add-on to Ron's Web Remote Tools page to check the a PC’s SMS Client Health state using Greg Ramsey’s SMS 2003 Client Troubleshooter, more details about this available here

Edit machrest.asp (take a back up, always better to be on the safe side) add the following around line 80ish or at the end of your other buttons, <input style='WIDTH: 180px' type='button' value='Client Troubleshooter' name='Btn747' ID='Button747'>

Add the following sub near the bottom, before </script>

' Client Troubleshooter!
Sub Btn747_OnClick
compname = trim(document.frmMain.txtValue.value)
Set WShell = CreateObject("WScript.Shell")
Set fso = CreateObject("Scripting.FileSystemObject")
strSMSServerName = "ServerName"
strDMSourceFldr = "\\" & strSMSServerName & "\Remote$\"
strcmdending = "\\ServerName\Remote$\unhealthyClientTroubleShooter.hta" & chr(34) & " -c: -h: -m:" & chr(34) & compname & chr(34) & " -a:1"
        wShell.run chr(34) & strDMLocalFldr & strcmdEnding,1,vbfalse
End Sub
' gtk ends Client Troubleshooter!

 

Copy unhealthyClientTroubleShooter.hta to your Remote$ share.

Copy folder Systinternals (includes pskill.exe & psservice) to your Remote$ share. Latest pstools available from Windows Sysinternals

Edit unhealthyClientTroubleShooter.hta lines 23-26 with your values.

Const strCCMSetupSource = "\\ServerName\SMSClient\i386\"  'this location contains ccmsetup.exe and client.msi
Const strCCMSetupArgs = "SMSSITECODE=AUTO DISABLECACHEOPT=TRUE SMSCACHESIZE=1500"
Const strClientVersion = "2.50.4253.3000" ' update this version to you corporate standard version
Const strDefaultAdvertID = "XXXXXXX"  'enter the default advert to run with 'rerun advertisement'

Credit goes to MeenEnta (aka George K) for sharing the addons, see forum post here, Greg Ramsey for his Troubleshooter Client.

Comments

No Comments