ConfigMgr ClientTroubleShooter - RonsWebRemoteTools

Published Saturday, January 10, 2009 4:25 PM

Here is an add-on to Ron's Web Remote Tools page to check the a PC’s ConfigMgr Client Health state using Greg Ramsey’s ConfigMgr Client Trouble-shooter, 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='ConfigMgr Client Troubleshooter' name='Btn760' ID='Button760'>

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

' ConfigMgr Client Troubleshooter!

Sub Btn760_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$\SCCMunHealthyClientTroubleShooter.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 SCCMunHealthyClientTroubleShooter.hta to your Remote$ share.

Copy pskill.exe & psservice to your %windir% directory. latest pstools available from Windows Sysinternals

 

Edit SCCMunHealthyClientTroubleShooter.hta lines 21-25 with your values.

Const intMinDiskSpace = 2  '2 gb
Const strCCMSetupSource = "\\MYSCCMServer\sccmclient"  'path to ccmsetup.exe  - ccmsetup.exe will be copied to the local system for install.
Const strCCMSetupArgs = "SMSSLP=mySLP FSP=myFSP" ' add appropriate server names
Const strClientVersion = "4.00.5931.0001"
Const strDefaultAdvertID = "LAB20083"  'enter default advertID for re-running mandatory assignments

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

Comments

# hcortez463 said on Thursday, February 12, 2009 4:11 PM

Rick.. great addin.. hey can you verify  this string.. when i test it i get and error.  is it correct

& chr(34) & " -c: -h: -m:" & chr(34) & compname & chr(34) & " -a:1"