header1   header
header
header Register : : Login header
header
connector   connector
menuleft menuright
submenu   submenu
left
Mail Stats Report Now Different After Rollup
Last Post 25 Aug 2011 07:24 AM by Karl Mitschke. 4 Replies.
Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
SebUser is Offline
New Member
New Member
Posts:10
Avatar

--
25 Aug 2011 05:38 AM
    Hi There,

    I have a mail stats report I run from a powershell script which was working fine.

    It list total mail sent per user but also splits up internal and external mails into two columns.

    Since I've installed the two latest rollup packaged for Exchange 2010 SP1 the script now considers all mail to be external and output 0 values for the internal fields.

    I've attached the script.  Can anyone help?

    001_EmailStats.ps1

    Marco ShawUser is Offline
    Veteran Member
    Veteran Member
    Posts:1684
    Avatar

    --
    25 Aug 2011 06:14 AM
    "I've installed the two latest rollup packaged for Exchange 2010 SP1"

    Can you specificy exactly what you've installed?


    Karl MitschkeUser is Offline
    Basic Member
    Basic Member
    Posts:457
    Avatar

    --
    25 Aug 2011 06:43 AM
    Try switching line 19 from
     <br>$accepted_domains = Get-AcceptedDomain |% {$_.domainname.domain} <br>


    To:
     <br>$accepted_domains = Get-AcceptedDomain |% {$_.domainname} <br>


    Karl


    http://unlockpowershell.wordpress.com
    Co-Author, Windows PowerShell 2.0 Bible
    -join("6B61726C6D69747363686B65406D742E6E6574"-split"(?<=\G.{2})",19|%{[char][int]"0x$_"})
    SebUser is Offline
    New Member
    New Member
    Posts:10
    Avatar

    --
    25 Aug 2011 07:22 AM
    Brilliant mate that worked a treat!!!

    Thanks!!!!!!!!!!!


    Karl MitschkeUser is Offline
    Basic Member
    Basic Member
    Posts:457
    Avatar

    --
    25 Aug 2011 07:24 AM
    You are welcome;

    Whenever I have a situation like that, I go line by line examining all variables :)

    Karl


    http://unlockpowershell.wordpress.com
    Co-Author, Windows PowerShell 2.0 Bible
    -join("6B61726C6D69747363686B65406D742E6E6574"-split"(?<=\G.{2})",19|%{[char][int]"0x$_"})
    You are not authorized to post a reply.


    Active Forums 4.3
    right
    footer   footer
    footer Sponsored by Quest Software • SAPIEN Technologies • Compellent • Microsoft Windows Server 2008 R2 footer
    footer   footer