Using powershell to Export Mailbox property to CSV indicating if IMAP and POP is enabled\disabled

Steel Contributor

Using PowerShell, How do we Export all 1000 Mailbox property to CSV indicating if IMAP and POP is enabled\disabled?

 

thanks

3 Replies

IMAP/POP enabled is checked via the Get-CasMailbox cmdlet. So you can do something like this:

 

Get-CASMailbox -ResultSize Unlimited | ft Name,POPEnabled,ImapEnabled | Export-Csv -nti blabla.csv

 

Add any other properties as needed.

Yeah, my bad - never use 'FT' when exporting :)

 

Get-CASMailbox -ResultSize Unlimited | select Name,POPEnabled,ImapEnabled | Export-Csv -nti blabla.csv