This script on powershell create a csv with computer name and last login date on Office365 accounts with corporative domains.
Step one - move "PS-SCRIPTS" paste to c:
Step two - run the code in lastlogondate.ps1 as an administrator on PowerShell
A csv sheet gonna be create on your desktop
;D
https://docs.microsoft.com/pt-br/powershell/module/Azuread/?view=azureadps-2.0 https://docs.microsoft.com/pt-br/office365/enterprise/powershell/connect-to-office-365-powershell#connect-with-the-microsoft-azure-active-directory-module-for-windows-powershell https://support.office.com/pt-br/article/obter-detalhes-sobre-os-dispositivos-gerenciados-pelo-gerenciamento-de-dispositivos-m%C3%B3veis-mdm-para-o-office-365-5602963c-a1f2-4c21-afb9-f66cd7dca1f0