Hi @Prasant Chettri
Welcome to Microsoft Q&A platform and thanks for posting your query here.
Great question! When you onboard devices in MS Purview with Defender in passive mode, the device might show as "green" and reflect policy updates without the script actually running. This could mean that the policy update is being applied through Defender's passive monitoring, but it doesn't necessarily indicate that the full DLP policy has been enforced yet.
To distinguish between endpoints that are onboarded with the script vs. those that aren't, one way to check is by looking at the device's onboard status in the device management report. However, the most reliable method would be to run the Endpoint DLP test on both types of devices and compare the results. This test should help clarify whether the policy is being actively applied by the Defender or if it's fully enforced via DLP.
Hope this helps. Do let us know if you any further queries.
If this answers your query, do click Accept Answer
and Yes
for was this answer helpful. And, if you have any further query do let us know.