How to Bulk Check SCCM Client Health and Version Via Powershell

Jason Barrett Jason Barrett | | ConfigMgr

In this article I am going to show you how you can bulk check sccm client health and version via powershell.  The script output will look like below (I have hidden the server names)

I will also show you how to output the result to a text file.

bulk check sccm client health

If you see a client version next to the client name this means the client is healthy. If the client is unhealthy you will get an error in red or no version listed.

Steps To Bulk Check SCCM Client Health and Version Via Powershell

Follow these steps

  • Open notepad and enter all the client names you want to check, save the file as a .txt file
    server lists
  • Open System Center Configuration Manager
  • Click on the down facing arrow then Connect via Windows Powershell
    system center configuration manager powershell
  • To output the client health result in a powershell window type in  Get-Content -path C:\Temp\server_list.txt | foreach { “{0} – {1}” -f $_, (Get-WMIObject -ComputerName $_ -Namespace root\ccm -Class SMS_Client).ClientVersion} in the powershell window, replace C:\Temp\server_list.txt with the file that you created in step 1.  The output from this command will look like
    bulk check sccm client health
  • If you want to output the result to a .txt file run the following command in the powershell window  Get-Content -path C:\Temp\server_list.txt | foreach { “{0} – {1}” -f $_, (Get-WMIObject -ComputerName $_ -Namespace root\ccm -Class SMS_Client).ClientVersion} > C:\Temp\result.txt
    client status result

If you have any questions about this process please ask about it by posting in a comment below.

1 thought on “How to Bulk Check SCCM Client Health and Version Via Powershell”

Comments are closed.