Check 365 for licensed disabled AD account

From Michael's Information Zone
Jump to navigation Jump to search
Get-Aduser -filter * | where {$_.Enabled -eq $False} | select -expandproperty samaccountname | get-casmailbox -erroraction silentlycontinue