![]() ![]() Modify the -EmailStatus part with your own details such as SMTP server, recipient etc.I have made a comment with # EDIT here the places that needs editing The script requires local administrative rights to run.The SCCM-ClientHealthMonitor.log file will look like below example when opened with CMtrace. Note: This is done with help from the PSTeams module.The status messages being sent with the -TeamsStatus parameter will look like below examples. The e-mail being sent with the -EmailStatus parameter looks like below example. This will run the script with all available options. If the service doesn’t exists, the script will try to install the SCCM client.\ SCCM-ClientHealthMonitor.ps1 -TestProvMode -TestGPOFiles -TestBITS -TestSCCMClient -InstallSCCMClient -EmailStatus -TeamsStatus This will test for a running ccmexec service and try to start the service if it’s not running. This will run tests and try to fix issues related to provisioning mode and corrupt group policy files.\ SCCM-ClientHealthMonitor.ps1 -TestSCCMClient -InstallSCCMClient \ SCCM-ClientHealthMonitor.ps1 -TestProvMode -TestGPOFiles All actions are logged to a local log file: SCCM-ClientHealthMonitor.log in the CCM\Logs folder. Corrupt Group Policy files (Registry.pol)įurther to fixing the mentioned issues, the script also supports sending an e-mail or a status to Microsoft Teams if any issues are found.The script is currently capable of fixing following issues: The SCCM Client Health Monitor Script is a Powershell script which fixes common issues related to SCCM client health. I’m working on moving this to Proactive Remediations in Microsoft Intune. *Update* This script needs updating and is yet to be moved to GitHub. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
June 2023
Categories |