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

%3CLINGO-SUB%20id%3D%22lingo-sub-890426%22%20slang%3D%22en-US%22%3EUsing%20powershell%20to%20Export%20Mailbox%20property%20to%20CSV%20indicating%20if%20IMAP%20and%20POP%20is%20enabled%5Cdisabled%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-890426%22%20slang%3D%22en-US%22%3E%3CP%3EUsing%20PowerShell%2C%20How%20do%20we%20Export%20all%201000%20Mailbox%20property%20to%20CSV%20indicating%20if%20IMAP%20and%20POP%20is%20enabled%5Cdisabled%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ethanks%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-890426%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAdmin%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EExchange%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-890544%22%20slang%3D%22en-US%22%3ERe%3A%20Using%20powershell%20to%20Export%20Mailbox%20property%20to%20CSV%20indicating%20if%20IMAP%20and%20POP%20is%20enabled%5Cdisable%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-890544%22%20slang%3D%22en-US%22%3E%3CP%3EIMAP%2FPOP%20enabled%20is%20checked%20via%20the%20Get-CasMailbox%20cmdlet.%20So%20you%20can%20do%20something%20like%20this%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3EGet-CASMailbox%20-ResultSize%20Unlimited%20%7C%20ft%20Name%2CPOPEnabled%2CImapEnabled%20%7C%20Export-Csv%20-nti%20blabla.csv%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAdd%20any%20other%20properties%20as%20needed.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-892688%22%20slang%3D%22en-US%22%3ERe%3A%20Using%20powershell%20to%20Export%20Mailbox%20property%20to%20CSV%20indicating%20if%20IMAP%20and%20POP%20is%20enabled%5Cdisable%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-892688%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F58%22%20target%3D%22_blank%22%3E%40Vasil%20Michev%3C%2FA%3E%26nbsp%3B%26nbsp%3B%20exported%20csv%20is%20empty%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20949px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F135404i47FCEBAB0A502780%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22csv.JPG%22%20title%3D%22csv.JPG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-892844%22%20slang%3D%22en-US%22%3ERe%3A%20Using%20powershell%20to%20Export%20Mailbox%20property%20to%20CSV%20indicating%20if%20IMAP%20and%20POP%20is%20enabled%5Cdisable%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-892844%22%20slang%3D%22en-US%22%3E%3CP%3EYeah%2C%20my%20bad%20-%20never%20use%20'FT'%20when%20exporting%20%3A)%3C%2Fimg%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20style%3D%22display%3A%20inline%20!important%3B%20float%3A%20none%3B%20background-color%3A%20%23f5f2f0%3B%20color%3A%20inherit%3B%20font-family%3A%20Menlo%2CMonaco%2CConsolas%2C'Courier%20New'%2Cmonospace%3B%20font-size%3A%20inherit%3B%20font-style%3A%20normal%3B%20font-variant%3A%20normal%3B%20font-weight%3A%20300%3B%20letter-spacing%3A%20normal%3B%20orphans%3A%202%3B%20text-align%3A%20left%3B%20text-decoration%3A%20none%3B%20text-indent%3A%200px%3B%20text-transform%3A%20none%3B%20-webkit-text-stroke-width%3A%200px%3B%20white-space%3A%20pre-wrap%3B%20word-spacing%3A%200px%3B%22%3EGet-CASMailbox%20-ResultSize%20Unlimited%20%7C%20select%20Name%2CPOPEnabled%2CImapEnabled%20%7C%20Export-Csv%20-nti%20blabla.csv%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Super Contributor

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

 

thanks

3 Replies
Highlighted

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.

Highlighted
Highlighted

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

 

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