ConfigMgr ClientTroubleShooter - RonsWebRemoteTools
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.