Office 365 Export eDiscovery Sources

Hey All,

I need to export the list of sources on an eDiscovery search.  I've tried these commands:

(Get-MailboxSearch -Identity "test 10 year hold") | Select-Object sourcemailbox | Export-Csv c:\hold.csv

The CSV file just shows this:

#TYPE Selected.System.Management.Automation.PSCustomObject

sourcemailbox

I've also tried this command:

(Get-MailboxSearch -Identity "test 10 year hold").SourceMailboxes | Export-Csv c:\10_Year_Hold.csv

But it just exports the lengths of the names.

Does anybody know how to just export the names out of an eDiscovery search?  I'm thinking I need to do some string to object conversion maybe but I'm not sure.  

Thanks!

July 21st, 2015 10:40am

You need to look at the target folder for the results.  Read the full help carefully.

Free Windows Admin Tool Kit Click here and download it now
July 21st, 2015 11:15am

I find the csv files in the target folder without any problem.  The problem is that the csv file either just says "sourcemailbox" or has a list of numbers.  I'm trying to get a list of names.  I did the get-help -detailed on get-mailboxsearch but wasn't able to find anything helpful with my scenario, which is why I posted here.

Thanks

July 21st, 2015 11:49am

That is what it returns.

See:

public MultiValuedProperty<ADObjectId> SourceMailboxes { get; }

It is an array of object ids which are just numbers.

Get-MailboxSearch <searchname> | select -expand SourceMailboxes

Will give you a lsit of one or more of these ids.

Free Windows Admin Tool Kit Click here and download it now
July 21st, 2015 12:57pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics