Hi @Dharmesh Patt , to completely block Microsoft account login, you can use Azure Policy guest configuration baseline for Windows. This policy setting prevents users from adding new Microsoft accounts on the computer. The recommended state for this setting is: Users can't add or log on with Microsoft accounts: https://learn.microsoft.com/en-us/azure/governance/policy/samples/guest-configuration-baseline-windows
You can also use Group Policies to enforce these settings across all machines. This can be done by creating a Group Policy Object (GPO) that includes the necessary registry changes and applying it to all machines.
I would also look into Local Security Policies to enforce these settings on individual machines.
You can use these samples as a starting point for the code, if you choose to take that route: https://github.com/microsoft/Windows-universal-samples
Please let me know if you have any questions and I can help you further.
If this answer helps you please mark "Accept Answer" so other users can reference it.
Thank you,
James