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 Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,344 questions
Microsoft Configuration Manager
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Youssef Saad 3,401 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 39,916 Reputation points Microsoft Vendor
    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