After migrating the OS to different hardware, the stored keys in the TPM are lost. In this case, it is not possible to sign in to M365 applications, and the guaranteed solution is as follows:
- Boot to Safe Mode
- Rename the following folder:
C:\users$dir\AppData\Local\Packages\Microsoft.AAD.BrokerPlugin_cw5n1h2txyewy
to:
C:\users$dir\AppData\Local\Packages\Microsoft.AAD.BrokerPlugin_cw5n1h2txyewy.old