Thank you for asking this question on the **Microsoft Q&A Platform. **
I understand that you require that you automatically log in to your Microsoft 365 Account with your Windows credentials, right?
Well, I think you need Azure Active Directory Seamless Single Sign-On:
Azure Active Directory Seamless Single Sign-On (Azure AD Seamless SSO) automatically signs users in when they are on their corporate devices connected to your corporate network.
Source https://learn.microsoft.com/en-us/azure/active-directory/hybrid/how-to-connect-sso
Hope this helps,
Carlos Solís Salazar
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.