Try this: ## Confirm OWAEnabled property on all mailboxes Get-CASMailbox -resultsize unlimited | Where-Object {$_.OWAEnabled -eq "True" } | Select-Object SamAccountName,OWAEnabled | out-file "$HOME\OWA_Enabled_Users_$(Get-Date -f yyyy-MM-dd).txt" Remove the -eq "True" comparison to get a list of all users, regardless of status. You can also determine ActiveSync, POP3, MAPI, etc. in the same manner by replacing OWAENabled with ActiveSyncEnabled, POPEnabled, MAPIEnabled. Hope that helps! |