Powershell, Exchange 2010 - Sent and Received emails by domain to CSV

I think I almost have what I want but I can't figure out the last bits.  Hoping someone can help.
This code does produce the results I want but I would prefer to have EventID send or EventID Receive in one line but can't figure out how to get the syntax correct.  The result would then provide the actual total I'm looking for rather than having the
results in 2 files.  
Get-MessageTrackingLog -Start (Get-Date).AddDays(-1) -ResultSize Unlimited -EventID receive | Select -Expand Recipients | Group { (($_).Split("{@}"))[1] } |select-object 'Name', 'Count' |export-csv c:\temp\Received.csv
Get-MessageTrackingLog -Start (Get-Date).AddDays(-1) -ResultSize Unlimited -EventID send | Select -Expand Recipients | Group { (($_).Split("{@}"))[1] } |select-object 'Name', 'Count' |export-csv c:\temp\sent.csv
Also, how do you get rid of the quotes "" in the csv file??
Thanks
Syncronet

Thank you for your help. Unfortunately, the output I get from the above code doesn't work.  Here it is: 
#TYPE System.Collections.Hashtable
"IsReadOnly","IsFixedSize","IsSynchronized","Keys","Values","SyncRoot","Count"
"False","False","False","System.Collections.Hashtable+KeyCollection","System.Collections.Hashtable+ValueCollection","System.Object","2"
"False","False","False","System.Collections.Hashtable+KeyCollection","System.Collections.Hashtable+ValueCollection","System.Object","2"
"False","False","False","System.Collections.Hashtable+KeyCollection","System.Collections.Hashtable+ValueCollection","System.Object","2"
"False","False","False","System.Collections.Hashtable+KeyCollection","System.Collections.Hashtable+ValueCollection","System.Object","2"
"False","False","False","System.Collections.Hashtable+KeyCollection","System.Collections.Hashtable+ValueCollection","System.Object","2"
"False","False","False","System.Collections.Hashtable+KeyCollection","System.Collections.Hashtable+ValueCollection","System.Object","2"
"False","False","False","System.Collections.Hashtable+KeyCollection","System.Collections.Hashtable+ValueCollection","System.Object","2"
"False","False","False","System.Collections.Hashtable+KeyCollection","System.Collections.Hashtable+ValueCollection","System.Object","2"
"False","False","False","System.Collections.Hashtable+KeyCollection","System.Collections.Hashtable+ValueCollection","System.Object","2"
"False","False","False","System.Collections.Hashtable+KeyCollection","System.Collections.Hashtable+ValueCollection","System.Object","2"
"False","False","False","System.Collections.Hashtable+KeyCollection","System.Collections.Hashtable+ValueCollection","System.Object","2"
"False","False","False","System.Collections.Hashtable+KeyCollection","System.Collections.Hashtable+ValueCollection","System.Object","2"
"False","False","False","System.Collections.Hashtable+KeyCollection","System.Collections.Hashtable+ValueCollection","System.Object","2"
"False","False","False","System.Collections.Hashtable+KeyCollection","System.Collections.Hashtable+ValueCollection","System.Object","2"
"False","False","False","System.Collections.Hashtable+KeyCollection","System.Collections.Hashtable+ValueCollection","System.Object","2"
"False","False","False","System.Collections.Hashtable+KeyCollection","System.Collections.Hashtable+ValueCollection","System.Object","2"
Did some of the code run off the end of the code box in your message?  I tried to add it but I must be missing something somewhere.
Thanks again for your help on this.
Syncronet

Similar Messages

  • Archiving/ Saving sent and received Emails in Mac Mail???

    Hello.
    I want to switch web hosts, and before doing so I want to save/ archive all of my past sent and received emails.
    Is there a way to do so?
    I know I can use gmail, not exactly sure how to do so but I bet it's not real hard, but I am wondering if there is a way to actually take all of the emails from my webmail and save them offline? Does Mac Mail do this? Can I save them as files? There are literally thousands of emails, so a way to save them to my local drive would be ideal....
    any ideas?

    You can create a New Mailbox to correspond with each Inbox and Sent mailbox, and then Copy the messages into those. At that point you can have a copy of each message in both the Inbox/Sent and the On My Mac mailboxes.
    However, if your email address will stay exactly the same (is associated with a hosted Domain) then you may be able to merely change the name of the Incoming server in the Mail Preferences/Accounts/Account Information and continue with the same accounts. This might not be workable because of the inexactness of when you old/new Host swap responsibility. If not, then remove each original account, set each one up again in conformity with info from your new Host, and then move the messages from the the On My Mailboxes you created above, into the corresponding Inbox and Sent of the new accounts.
    Ernie
    Message was edited by: Ernie Stamper

  • Iphone sent and received email

    Can sent emails and responses be seen together or consecutively on the iphone without having to switch between the inbox and sent mail box?
    Thanks!

    Morning SalsB,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at this article:
    iOS: Troubleshooting FaceTime
    http://support.apple.com/kb/ts3367
    Best of luck,
    Mario

  • Can we fetch a report which shows the information carrying the emails sent and received by exchange servers?

    Can we fetch a report through scom 2007 r2 which shows the information carrying the emails sent and received  by exchange servers?

    Hi,
    Within the imported Exchange management pack, we have some default reports that could be run. Have your imported the proper MP to your management group, please check whether those default reports can achieve what you want.
    In addition, here is a powershell script to show total number of emails sent and received per user:
    Exchange 2007/2010 Email stats
    https://gallery.technet.microsoft.com/scriptcenter/bb94b422-eb9e-4c53-a454-f7da6ddfb5d6
    Regards,
    Yan Li
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • Exchange 2007 - User's mailbox disappeared in EMC but they can still send and receive email

    We have a user that was complaining about not being in the address book anymore.  After I did a little rooting around in management console I noticed that their mailbox was no longer listed under Recipient Configuration -> Mailbox, but what's weirder
    is I can do a search and find her listed in the results - at which point I can right-click her name and do everything I normally can with no problem. Listing all of the mailboxes with PS shows her still there too.  As far as I know, she is the only user
    having this problem.
    She can send and receive email just fine, but like I said, she is no longer in the global address list so other users have trouble sending her stuff.  At her computer, I tried repairing her email (under account settings) but the process would fail when
    searching for her settings.  I don't know if this is a stupid thing to add, but I did run Clean-MailboxDatabase on our first storage group to see if her mailbox had been deleted or disconnected or whatnot but nothing is currently showing up in Recipient
    Configuration -> Disconnected Mailbox.
    Some info on our setup:
    Exchange 2007 on Windows Server 2003r2
    AD is on Windows Server 2008r2
    Her computer is running Outlook 2010
    I did restart our Exchange server 2 days ago to update VMWare tools, but no Windows updates were installed.  She couldn't tell me exactly when this problem started, but it was more-than-likely in the last couple of days as she was recently married and
    I had to change her name in AD and Exchange - so everything was confirmed 100% functioning 2-3 weeks ago.
    I'm at a lost for what the issue could be, but then again Exchange isn't exactly my forte, so any help would be much appreciated.

    First things first - is her mailbox hidden from address lists?  Run
    Get-Mailbox <alias> | Fl HiddenFromAddressListsEnabled to find out.  It probably isn't, but we need to clear this, just in case.
    Now, assuming it is not hidden, have you searched for both her maiden and married names in your directory?  Often, when the name on a mailbox is changed, the display name is not - and vice versa.  Also, has her email address also changed? 
    If so, has a secondary proxy address been added to reflect her maiden name?  I'd do this, just to be sure things aren't lost that should be delivered to her.
    I can't think of anything else obvious right now.  After you've checked these things, get back to us with their results.

  • I need send and receive emails for edge server 2010

    i have exchnage 2010 in our orgnization now working fine , i can send and receive emails for hub and also we have tmg and fortigate firewall(200B) , already install and configuration edge server(configure edge subscribtion file and edge sync) but still message
    sent form hub and also receive form hub , what to do to receive from edge ? please help me i have 3 month search to fix his problem.

    Hello,
    I recommend you use the Test-EdgeSynchronization cmdlet to check if the subscribed Edge Transport servers have a current and accurate synchronization status. If you have configured EdgeSynchronization successfully, please delete send connector
    on Hub transport server.
    Please uncheck "anonymous users" on receive connector for Hub server.
    Please follow the ExchangeITPro's suggestion to check DNS MX record.
    Cara Chen
    TechNet Community Support

  • TS1702 My iMessage is only allowing me to select messages to be sent and received from my email. If my number is an option, but it will not let me select my number, how do I get the iMessages to be sent to my number and not my email?

    My iMessage is only allowing me to select messages to be sent and received from my email. If my number is an option, but it will not let me select my number, how do I get the iMessages to be sent to my number and not my email?

    Try ejecting your iphone from iTunes and then close iTunes. Now retry. Hope this helps.

  • Iphone 4S - its gone crazy, imessages are sent and received and going thru my Ipad, phone and email. Facetime cannot be used, as I dont have the facetime logo in my contacts anymore. Help!!!

    Basically my Imessages thast are sent and received are going to both my Ipads, phone and sent messages are shown to receiver as an email.
    When I go into settings / send and receive, it has my email address and a mobile number which is greyed out and cannot be changed, the sim card in my fone is completely different to the one store in the settings. I have no facetime option in my contact list either, its completely gone.
    Can anyone help, Please

    Morning SalsB,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at this article:
    iOS: Troubleshooting FaceTime
    http://support.apple.com/kb/ts3367
    Best of luck,
    Mario

  • HT201320 I have two email accounts. However, the iPad automatically uses the account that I only want to use for business. How can I change the account from which mail is sent and received?

    I have two email accounts. However, the iPad automatically uses the account that I only want to use for business. How can I change the account from which mail is sent and received?

    You are most welcome

  • When i go onto iPhoto and choose a photo to send via email, i click send and the photo is sent and received but doesn't appear in my email sent items ?

    when i go onto iPhoto and choose a photo to send via email, i click send and the photo is sent and received but doesn't appear in my email sent items ?

    This is not the iPhoto forum. In any case in iPhoto>Preferences select Mail or whatever email program you are using to email as the desired choice. You are probably sending directly through iPhoto.

  • TS4268 My text messages are being sent and received with my email address instead of my phone number. How do I fix this?

    My text messages are being sent and received with my email address instead of my phone number. How do I fix this?

    This is with iMessages only.
    Go to Settings > Messages > Send &amp; Receive and below the Start New Conversations From, select your cell phone number instead of your Apple ID email address.

  • Problems sending and receiving emails using exchange when on wifi - OK when using Sim Card

    I've an iphone 4S using Exchange to link up with company server, this works fine when using 3G - phone's Sim Card. But when I join a wifi network I can no longer send and receive emails until I disconnect from the wifi network.
    Has anybody any ideas?

    Hi Derick,
    you need to make sure the following is met:
    1- router is correclt setup and antennas are plugged
    2- users are withint good range from the router
    3- use a good channel for the router, one of either 1, 6 or 11. try to figure out which is the best channel to choose using a freeware site survey tool.
    4- ssid configuration doesn´t involve eap and session timeouts.
    if you have doubts, let me know
    cheers
    Serge

  • Exchange server 2007 stop receiving emails

    i have a strange issue with our exchange 2007 server, and i hope any one can help me, each day i have one of our exchange servers can't receive emails, and all emails sent to users in this servers are queued in the sending email server, and i have to manually
    restart the Microsoft exchange transport service in this server so that it's able to receive emails, i found an error in the server that always repeated with different parameters
    the error is
    Error ID: 4999
    Error Source: MSExchange Common
    Watson report about to be sent to dw20.exe for process id: 3508, with parameters: E12, c-RTL-AMD64, 08.02.0254.000, edgetransport, M.E.Transport, M.E.P.S.SmtpInServer.HandleConnection, System.NullReferenceException, 69f8, 08.02.0254.000.  ErrorReportingEnabled:
    False
    i receive the same error each time the server stop responds but the parameters is changed each time (Process ID number always changed) like below
    Watson report about to be sent to dw20.exe for process id: 3644, with parameters: E12, c-RTL-AMD64, 08.02.0254.000, edgetransport, M.E.Transport, M.E.P.S.SmtpInServer.HandleConnection, System.NullReferenceException, 69f8, 08.02.0254.000.  ErrorReportingEnabled:
    False
    i hope any one can help me solving this problem
    the server is windows server 2008
    Exchange 2007 SP2 Server Rollup 5
    McAfee Enterprise Antivirus is in the box
    Backup Exec Agent is in the box Also
    a lot of transport rules applied to our exchange organization
    Mahmoud Sabry IT System Engineer

    Hi
    As per the information and details provided by you, Exchange server 2007 stop receiving emails, then please follow these steps: -
    If you do have a 60 GB partition on the C: drive, one of the first signs of trouble is when the free space on C: drops below 2GB. Exchange 2007 stops receiving external
    emails. This is caused by a condition known as Back Pressure.
    Please check the following: -
    Check the nslook up for correct MX record.
    Run the exbpa and llok for any recent changes.
    Check for the device in perimeter network which accepts connections on port 25 FW or any other anti spam device).
    Try to run a telnet session from the firwall and then out side and drop email on the server.
    I hope this information will be helpful for you.
    Thanks and regards
    Shweta@G 

  • We have 3 devices used by 3 different people under the same Apple ID, how do I stop getting my daughters texts, both sent and received?

    We have 3 devices used by 3 different people under the same Apple ID, how do I stop receiving my daughters texts? Both sent and received.

    When you use the same Apple ID on 3 devices it means you are all using the same (email, imessaging, calendar etc).  Since iCloud (MobileMe) is designed to be shared across all devices included Macs, it means all devices setup with the same ID will have access to the information.
    Text messaging is relevant only to the number you are texting.  This is done through your telecom companys lines and not on Apples.
    If you do not want to have others be able to read any of your information then it is best you each have your own account.

  • Unable to send and receive email for external domain

    Hi,
    I just installed Exchange Server on my 2K8 domain controller. I have set up the send connector and made necessary changes to the receive connector as well. I have updated the DNS records as well on my domain registrar. I can access OWA from outside my companies
    network and is able to send and receive emails for my domain but unable to send or receive emails to any other domain. I have checked the delivery report and it says that the message has been queued on the server. 
    I also did nslookup. Results mentioned below:
    C:\Users\Administrator>nslookup www.google.com
    Server:  localhost
    Address:  ::1
    Non-authoritative answer:
    Name:    www.google.com
    Addresses:  2404:6800:4009:802::1014
              74.125.236.145
              74.125.236.148
              74.125.236.146
              74.125.236.144
              74.125.236.147
    C:\Users\Administrator>nslookup www.microsoft.com
    Server:  localhost
    Address:  ::1
    DNS request timed out.
        timeout was 2 seconds.
    DNS request timed out.
        timeout was 2 seconds.
    *** Request to localhost timed-out
    Any help would be much appreciated!

    Hi hg01,
    According to your description, I notice that you installed Exchange server on a DC.
    It is not recommended to install Exchange server on a DC. I suggest install Exchange server on a member server. More details to see:
    Installing Exchange on a domain controller is not recommended
    http://technet.microsoft.com/en-us/library/ms.exch.setupreadiness.warninginstallexchangerolesondomaincontroller(v=exchg.150).aspx
    About your issue, cannot send and receive externally, I suggest make sure the DNS can be resolved first.
    Then, check whether Outlook Anywhere has been enabled. If not, please enable it on both Exchange server and Outlook client side.
    Last, try to configure both Send Connector and Receive Connector.
    More detailed error message will be helpful for the further troubleshooting.
    Thanks

Maybe you are looking for

  • Multi Value Parameter in SSRS

    Hi, I have a parameter "MyTeam" (multi-select) which is a list of users. I also have P1,P2,P3,P4,P5 as additional parameters. My requirement is , When I select only 1 value in "MyTeam" , P1 should be filled with value selected and P2,P3,P4,P5 should

  • Error while running hr_sit_api.create_sit API - FLEX-INVALID NUMBER

    I am writing an Inbound interface code to import the SIT info. When I tested the  hr_sit_api.create_sit API, it gave me an error ORA-20001: FLEX-INVALID NUMBER. I made sure that the flex id number and id_flex_structure_code are correct. But, I am una

  • Login Module configuration for soap adapter ?

    Hi Guys, I have configured XISOAPAdapter for client certificate Authentication and i have created 1443 as the HTTPS port on the ABAP stack and defined this port in the instance profile. Under SSL provider i have selected 50101 as the HTTPS port and t

  • Need to call custom version of RSNAST00 from VF03 output type

    I have created a customized version of the RSNAST00 program which is valid for two existing ouptut types for billing condition "V3".  This new program (ZRSNAST00) works fine when called directly (i.e. se38).  However, when issuing output type via VF0

  • Can I order a laptop with a scandinavian keyboard?

    I am going to be going overseas and would like to get a laptop with a "scandinavian" keyboard.  Computers in the US are much cheaper then in Europe.  Is there a way to order a scandinavian keyboard and have it delivered in to an address in the US?