#PowerShell - Finding mailboxes that belongs to users with no license.
get-mailbox -ResultSize unlimited | where {($_.RecipientTypeDetails -eq "UserMailbox") -and ($_.sk uassigned -ne “True”)}