Does anyone know how to export data from the external contacts in live@edu, using PowerShell? I need all name fields (first name, last name etc). I have been able to do it using:
Get-MailContact -ResultSize Unlimited | Where {($_.WhenCreated -gt (get-date).adddays(-300))} | Export-Csv d:\external
But this gives me a lot of data I dont need and only the full name and not the name fields seperatly.
I can also use:
Get-MailContact -ResultSize Unlimited | Select-Object DisplayName,EmailAddresses,MailboxPlan,ServerName,DatabaseName | Export-Csv .\output.csv
Which doesnt give me the FirstName, LastName either. Even if I add it to the list (in which case it results in 2 blank columns with just the titles.
FirstNameorLastNamebeing returned in theMailContactrecord: technet.microsoft.com/en-us/library/bb124717.aspx – ta.speot.is Mar 5 '11 at 1:37