SCCM Client Health Check using WMI Classes in Powershell

Monalika Priya 1 Reputation point Microsoft Employee
2020-12-09T12:46:05.903+00:00

Hi Experts,

I need to create a script that will check the health of SCCM Client machines and troubleshoot accordingly.
The script will be running remotely on all client machines from any server.
For this i need information of all WMI Classes that can retrieve(or fetch) the health status of client machine.

Any help would be appreciated.

Thanks,

Monalika Priya

Windows for business Windows Server User experience PowerShell
Microsoft Security Intune Configuration Manager Other
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Youssef Saad 3,416 Reputation points
    2020-12-09T12:51:15.85+00:00

    Hi @Anonymous ,

    There is a built-in client ConfigMgr task scheduler that run periodically, but if you want a supplement PS script, there is much in the Gallery, like the following:

    Regards,


    Youssef Saad | New blog: https://youssef-saad.blogspot.com
    Please remember to ** “Accept answer” ** for useful answers, thank you!

    0 comments No comments

  2. AllenLiu-MSFT 49,311 Reputation points Microsoft External Staff
    2020-12-10T06:41:55.807+00:00

    @Anonymous
    Thank you for posting in Microsoft Q&A forum.
    You may also try this PS script, or you may try to retrieve the WMI Classes from this script:
    https://gallery.technet.microsoft.com/ConfigMgr-Client-Health-ccd00bd7#content


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.