# Fix Microsoft 365 Login

If you experience issues with your Microsoft 365 login like frequent requests to login again, the attached script may help.

1. Download the [OLicenseCleanup.zip](https://wiki.pcspezialist-hannover.de/attachments/2) and extract it
2. Close your Microsoft 365 applications like Outlook, Teams or Office
3. Run the OLicenseCleanup.vbs VBScript file and ignore the other files 
    1. [![OLicenseCleanup1.JPG](https://wiki.pcspezialist-hannover.de/uploads/images/gallery/2025-07/scaled-1680-/olicensecleanup1.JPG)](https://wiki.pcspezialist-hannover.de/uploads/images/gallery/2025-07/olicensecleanup1.JPG)
    2. Wait three minutes (a black terminal window may flash shortly) and restart your PC
    3. [![OLicenseCleanup2.JPG](https://wiki.pcspezialist-hannover.de/uploads/images/gallery/2025-07/scaled-1680-/olicensecleanup2.JPG)](https://wiki.pcspezialist-hannover.de/uploads/images/gallery/2025-07/olicensecleanup2.JPG)
4. Now you need to login again without any issues
5. Let us know if you still experience any issues so that we may troubleshoot further