Hi @K Roja
Thank you for asking this question on the **Microsoft Q&A Platform. **
There is no uncomplicated way to do what you need.
You can use any of these recommended scripts:
https://www.cyberdrain.com/automating-with-powershell-enabling-secure-defaults-and-sd-explained/
https://www.michev.info/Blog/Post/3087/toggle-azure-ad-security-defaults-on-or-off-programmatically
Hope this helps!
----------
Accept Answer and Upvote, if any of the above helped, this thread can help others in the community looking for remediation for similar issues.
NOTE: To answer you as quickly as possible, please mention me in your reply.