Hi @azhar Nasim
By "disabled accounts", do you mean disabled AD accounts or disabled mailboxes?
If it is disabled mailboxes, you can use the following cmdlet in Exchange Management Shell:
Get-MailboxDatabase | Get-MailboxStatistics | where {$_.DisconnectReason -eq "Disable"} | select DisplayName,TotalItemSize,LastLogonTime | Export-csv C:\temp\disabled_mailbox.csv
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.