Hi, @Nitin Singh
Thank you for posting in Microsoft Q&A forum.
To identify devices from a device collection where the SCCM client is not healthy and needs to be repaired, you can use the "Client Activity" report which shows the activity of each client on the system. This report shows the last policy request, the last hardware inventory scan, and the last software inventory scan. If there are any issues with the client, you can see them in this report.
The trigger point could be the "Client Health Evaluation" task in Configuration Manager, which runs by default every 24 hours and verifies the health of the client components.
Installing the client from the SCCM console may fix some client issues, but the best practice is to repair the client.
Here is an article how to repair client, we can use Run Script to repair multiple clients:
https://www.prajwaldesai.com/repair-sccm-client-agent/
You may create dynamic device collection that needs to be repaired with this link:
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Add comment".