Exchange 2010 - Report NDRs with powershell

Hi all,
I would like to analyze all internal NDRs within my exchange environment. For example we have systems which are hard coded with email addresses of internal recipients and people leave the business and their mailbox and associated email address will be removed
from exchange but not from a third party system that has a list of addresses to send notifications out to or home grown scripts. In order to keep the email pipeline clean and follow best practices I would like to catch these NDRs and remove them from the relevant
systems.
Is there anyway I can do this with powershell, my environment Exchange 2010 SP2 and all the roles are on a single server.

Hi Niko,
I have just performed the following test:
sent an email to an internal recipient were the address does not exist, example
[email protected]
The NDR does not come from [email protected]
The headers for the NDR I got as listed below:
MIME-Version: 1.0
From: Microsoft Outlook
 <[email protected]>
To: <[email protected]>
Date: Thu, 11 Dec 2014 08:55:54 +0000
Content-Type: multipart/report; report-type=delivery-status;
 boundary="129b7383-6632-4979-ab4a-e5742a33ae6b"
X-MS-Exchange-Organization-SCL: -1
Content-Language: en-GB
Message-ID: <[email protected]>
In-Reply-To: <[email protected]com>
References: <[email protected]com>
Thread-Topic: test
Thread-Index: AdAVIEZfXlpAxeICRk2Dg71q+Amr/wAAADyf
Subject: Undeliverable: test
X-MS-Exchange-Organization-AuthSource: exchangeserver.mydomain.com
X-MS-Exchange-Organization-AuthAs: Internal
X-MS-Exchange-Organization-AuthMechanism: 05

Similar Messages

  • Exchange 2010 logon statistics with powershell

    I am trying to get some logon statistics from a Exchange server 2010, I am using the following command, 
    Get-MailboxServer | Get-LogonStatistics | Select UserName,ClientVersion,LastAccessTime,ServerName, but it returns this, 3587.0.32963.1, as a version
    number.
    I have read that it is af bug in Exchange 2010. Does anyone have a workaround?

    Right, I guess along with IP address Outlook doesn't send version information either back via Get-LogonStatistics...
    The client IP address for an Outlook 2010 client is not logged in Exchange when you use the Get-LogonStatistics command -
    http://support.microsoft.com/kb/2292750
    However you can get Version information from RPC Client Access Logs located in below folder...
    \Program Files\Microsoft\Exchange Server\v14\Logging\RPC Client Access

  • Real-world experience with Exchange 2010 SP3 RU5+ and Powershell 4?

    The support-ability matrix for Exchange (http://technet.microsoft.com/en-us/library/ff728623(v=exchg.150).aspx) says Exchange
    2010 SP3 RU5+ and Powershell 4 are compatible.  But, there is very little actual discussion about how well that works. 
    I use Powershell extensively for mission critical and somewhat complex processes, with Exchange 2010 on 2008 R2 and AD access/reads/updates. 
    Can I get a summary of the caveats and benefits from someone who has actually done this in a
    real-world/production scenario (more than one server, managing from a separate non-Exchange server), and who has scripting experience with this configuration?  
    Also, how has this affected EMC operations?  
    As always thank you in advance!  

    I believe the matrix states that its supported to install Exchange into an environment where __ version of WMF is present.  Exchange 2010, launched from a Win 2012 server, reports version 2.0 when you call $host.  For example, calling the ActiveDirectory
    module from EMS on an Win 2012 server (ps 3.0) fails.
    I'll double check the extent of this scenario and get back to you.
    Mike Crowley | MVP
    My Blog --
    Planet Technologies

  • "Microsoft.Exchange.2010.Reports.Transport.Platform.TopUsers "Report show no result

    hello,
          i have an issue in my SCOM 2012 report.when i go to
    Reporting --> Exchange Server 2010 Report Library-->and open the report Microsoft.Exchange.2010.Reports.Transport.Platform.Top users.
    in my scom 2012 console and execute the report for top users on the basis of Messages Send or Messages Received ,it return zero result.
    thank you

    Hi,
    Blank reports can be a common issue with System Center Operations Manager. These are caused by many different reasons, and for the focus of this article we will discuss the following:
    1. The wrong type of entity was selected as the report target.
    2. The corresponding performance collection rule or the script that generates the performance data is not enabled for the report target.
    3. There is a functional problem with the Health Service on the agent.
    4. Management servers are unable to insert data into the OperationsManagerDW database.
    5. Data is stuck in the staging tables in the OperationsManagerDW database.
    More details:
    https://support2.microsoft.com/kb/2573329?wa=wsignin1.0
    In addition, it is suggested to configure the Exchange management pack  according to the mangement pack guide.
    And here are two links that should be helpful for you regarding to this issue, please refer to them:
    http://zoomindia111.wordpress.com/configure-exchange-2010-sp1-management-pack-in-scom-2007-r2/
    http://blogs.technet.com/b/emreguclu/archive/2011/09/26/empty-exchange-2010-server-statistics-mailflow-reports-if-default-log-directory-has-changed.aspx
    Regards,
    Yan Li
    Regards, Yan Li

  • Incorrect Report duration in CAS Exchange 2010 Reports

    Hi ,
    We are facing issues in our Exchange 2010 reports where Reports are coming blank. We had an DWH aggregation issue in the past with the Exchange dataset. With the help of Microsoft we had caught up the aggregation manually. Post that the Exchange reports are
    coming blank.
    What could be done to fix the issue.
    Regards,
    Jesty

    First go to the event viewer, Application, Operations Manager and look if errors related to the Exchange Reports are raised. Verify that you enable rules.
    For empty Exchange 2010 Server Statistics/Mailflow Reports
    http://blogs.technet.com/b/emreguclu/archive/2011/09/26/empty-exchange-2010-server-statistics-mailflow-reports-if-default-log-directory-has-changed.aspx
    http://www.dario.co.il/?p=968
    Also you can check below link for blank reports
    http://support.microsoft.com/kb/2573329
    Please remember, if you see a post that helped you please click "Vote As Helpful" and if it answered your question, please click "Mark As Answer"
    Mai Ali | My blog: Technical | Twitter:
    Mai Ali

  • Unable to generate two Exchange 2010 reports

    i
    I am using SCOM 2007 R2 and I am not able to pull the below Exchange 2010 reports in SCOM. till Last month its working fine and now the issue started.
    1. Report Name: Microsoft.Exchange.2010.Reports.Transport.Platform.TopUsers
    Error Message
    Date: 2014-09-12 22:02:22
    Application: System Center Operations Manager 2007 R2
    Application Version: 6.1.7221.81
    Severity: Error
    Message: Cannot initialize report.
    Microsoft.Reporting.WinForms.ReportServerException: An internal error occurred on the report server. See the error log for more details. (rsInternalError) ---> Microsoft.Reporting.WinForms.ReportServerException: For more information about this error
    navigate to the report server on the local server machine, or enable remote errors
       --- End of inner exception stack trace ---
       at Microsoft.Reporting.WinForms.ServerReport.GetExecutionInfo()
       at Microsoft.Reporting.WinForms.ServerReport.GetParameters()
       at Microsoft.EnterpriseManagement.Mom.Internal.UI.Reporting.Parameters.ReportParameterBlock.Initialize(ServerReport serverReport)
       at Microsoft.EnterpriseManagement.Mom.Internal.UI.Console.ReportForm.SetReportJob(Object sender, ConsoleJobEventArgs args)
    Microsoft.Reporting.WinForms.ReportServerException: For more information about this error navigate to the report server on the local server machine, or enable remote errors
    2.Microsoft.Exchange.2010.Reports.SLA
    Error Message:
    An error has occured during report processing.
    Query execution failed for dataset 'OutageBreakdown'
    For more information about this error navigate to the report server on the local server machine, or enable remote errors.
    Please help us to resolve this issue.
    Donald D'souza (http://donald-scom.blogspot.com/)

    Regarding the error, please also try the following methods:
    Error message when you try to generate a report in System Center Operations Manager 2007: "Cannot initialize report"
    http://support.microsoft.com/kb/942865
    SCOM - "Cannot initialize report" error
    http://blogs.technet.com/b/csstwplatform/archive/2009/02/16/scom-cannot-initialize-report-error.aspx
    SCOM R2 Console error message: Cannot initialize report.
    http://thoughtsonopsmgr.blogspot.com/2010/04/scom-r2-console-error-message-cannot.html
    Please remember, if you see a post that helped you please click "Vote As Helpful" and if it answered your question, please click "Mark As Answer"
    Mai Ali | My blog: Technical | Twitter:
    Mai Ali

  • Exchange 2010 SP2 to SP3 Powershell script execution policies

    Hi,
    I have broken Labs when installing service packs on exchange 2010 servers because the powershell execution policies have been incorrectly configured. Once the WMI service has been stopped, the scripts within the SP haven't been able to start it up again. 
    I can't find any info on Powershell script execution policies in relation to the SP3 for 2010 prerequisites. Does anyone know what they should be set at? And why haven't these been at the top of the list of prerequisites for installations of service packs
    for exchange? 

    Hello,
    Come back and mark the replies as answers if they help and unmark them if they provide no help.
    I'm marking the reply as answer as there has been no update for a couple of days.
    If you come back to find it doesn't work for you, please reply to us and unmark the answer.
    Cara Chen
    TechNet Community Support

  • ISA 2006 publish Exchange 2010 Outlook Anywhere with Kerberos Constrained Delegation

    Hi,
    I have two Exchange 2010 Sp1 CAS with Windows Network Loadbalancing. I set up an alternate Serviceaccount and mapped the http,ExchangeMDB,PRF and ExchangeAB SPNs.
    Then i published the Exchange Services via ISA 2006. OWA is working using Internet -> via NTLM -> ISA(webmail.domain.com) -> via KCD -> CAS-Array(ex2010.domain.com)
    I tried the same with Outlook Anywhere (RPC over HTTP) without success.
    Authentication to the ISA via NTLM works fine, but i think the isa server cannot delegate the Credentials successfully to the CAS-Server.
    The ISA Log looks like:
    Allowed Connection ISA 24.11.2011 15:50:40
    Log type: Web Proxy (Reverse)
    Status: 403 Forbidden
    Rule: Exchange 2010 RPC
    Source: Internal (172.16.251.33)
    Destination: (172.18.10.182:443)
    Request: RPC_OUT_DATA
    http://webmail.domain.com/rpc/rpcproxy.dll?ex2010.domain.com:6001
    Filter information: Req ID: 108b89d8; Compression: client=No, server=No, compress rate=0% decompress rate=0%
    Protocol: https
    So i always get a 403 Forbidden from the CAS.
    I the IIS logfile from the cas server i see this entry:
    2011-11-24 15:51:37 172.18.10.182 RPC_OUT_DATA /rpc/rpcproxy.dll ex2010.domain.com:6001 443 - <ISA IP> MSRPC 401 1 2148074254 203
    I use the same Listener for OWA and Outlook Anywhere. Authentication Methods are Basic and Integrated. I forward the request to a webfarm which exists of the two physical CAS. Internal Site Name is set to the NLB name ex2010.domain.com, SPN is set to http/ex2010.domain.com
    Thanks for your support

    Hi, i ran into the same Problem.
    the steps above solved mine too (Creating a custom AppPool which runs under LocalSystem).
    I wonder why they included only the Script: convertoabtovdir.ps1
    http://social.technet.microsoft.com/Forums/en-US/Forefrontedgegeneral/thread/dc24ccd3-378a-47cc-bbbf-48236f8fe5b0
    Ist this a supported configuration (changing AppPool of RPC)?

  • ISA 2006 publish Exchange 2010 Outlook Anywhere with KCD/NTLM and IPSEC - Problem

    Hi
    I have setup ISA 2006 to publish Exchange 2010 Outlook Anywhere with Kerberos Constrained Delegation and IPSEC.
    The clients have an IPSEC policy pushed to them via GPO.  The clients are windows 7 laptops and the ISA server is server 2003, so the IPSEC connection is IKE not AuthIP.
    However, it seems that the connection will work for a while, then all of a sudden stop working with zero trace of why.  I cant get the Oakley log to work and I cant see any traffic on the ISA.
    I am wondering if I need to publish the CRL's externally?  Currently we don't, and the Outlook Anywhere uses private certificates (as the whole point of IPSEC is to validate the internal certificate, there is no point in using
    public certificates).
    I have tried using the StrongCRLCheck=0 registry key in the IPsec Policy Agent on the windows 7 machine but it doesn't seem to make a difference.
    Any advice would be appreciated.
    Steven

    Hi,
    Firstly, have you received any related error messages in ISA server or on the clients' side? Besides, as you mentioned IPsec, did you have a VPN connection?
    In addition,
    While ISA 2006 only includes a Client Access Web Publishing Wizard for both Exchange 2003 and Exchange 2007. Which Exchange version you have chosen when publishing Exchange 2010?
    Please also make sure that you have selected the
    External interface for the web listener to listen on.
    Besides, the link below would be helpful to you:
    OWA publishing using Kerberos Constrained Delegation
    method for authentication delegation
    Best regards,
    Susie

  • Create report subscription with powershell in SCCM 2012 R2

    Hi all,
    I'm wondering if it's possible to create report subscriptions with powershell ? This would save me a lot of time.
    Kind regards,
    J.M.

    If there was any it would be part of the SSRS PoSH cmdlets.  
    http://www.enhansoft.com/

  • Problem with Exchange 2010 scripts after installing PowerShell 4.0

    Hi
    After installing new updates for MS Exchange 2010 and PowerShell 4.0 I've got problems with PS scripts using buil-in
    exchange commands.
    I wrote interactive script for searching e-mails. Here is a pice of code where I get error after installing PS v4.
    $SearchContent=Read-Host "Write sentence to find"
    Get-Mailbox | Search-Mailbox -SearchQuery "$SearchContent" -TargetMailbox "Discovery Search Mailbox" -TargetFolder "Inner box" -LogOnly -Loglevel Full | Out-Null
    After installing PowerShell 4.0 I get that bug and report in TargetMailbox is not genereated.
    The property keyword isn't supported.
    At C:\Administration\Scripts\T-SearchMail.ps1:122 char:1
    + Get-Mailbox | Search-Mailbox -SearchQuery "$SearchContent" -TargetMailbox "Disco ...
    + ~~~~~~~~~~~~~~~~~   
    + CategoryInfo          : InvalidArgument: (:) [], ParserException
        + FullyQualifiedErrorId : 35E6C841
    Using PowerShell 2.0 everything was ok.
    How to solve this problem?
    Tomasz
    Kind Regards Tomasz

    But http://blogs.msdn.com/b/powershell/archive/2013/10/25/windows-management-framework-4-0-is-now-available.aspx is dated
    October 2013, while the current Windows Management Framework 4.0 System Requirements section states:
    Servers that are running the following applications can now run WMF 4.0. The versions listed are the minimum releases required to run WMF 4.0.
    Microsoft Exchange Server 2013 Service Pack 1
    Microsoft Exchange Server 2010 SP3 with Update Rollup 5
    Since
    Update Rollup 5 For Exchange 2010 SP3 (KB2917508) was published Febrary 2014, shouldn't Exchange 2010 now be compatible with PowerShell 4.0?

  • Exchange 2010 Reporting

    Hi,
    I am trying to prepare a scheduled monthly report for my exchange 2010 environment in the below format.
    But, I am not able to get the output of Column 2,4,5,8 & and smtpaddresses in the above format.
    Is it possible to achieve such an output with help of powershell ? If Yes, can someone help me ?
    Thanks in Advance :)
    Ankush Shah

    Below is the my script, still need to refine this. But as i mentioned need help towards formatting and getting count of incoming & outgoing emails per user
    #************* Function to set start & end dates *************
    function enddate
        Param(
        [Parameter(Mandatory=$True,Position=1)]
        [string]$Month,
        [Parameter(Mandatory=$True,Position=2)]
        [string]$Year   
        $date=    switch ($month)
         1 {"31/01/$Year"; break}
         2 {"28/02/$Year"; break}
         3 {"31/03/$Year"; break}
         4 {"30/04/$Year"; break}
         5 {"31/05/$Year"; break}
         6 {"30/06/$Year"; break}
         7 {"31/07/$Year"; break}
         8 {"31/08/$Year"; break}
         9 {"30/09/$Year"; break}
         10 {"31/10/$Year"; break}
         11 {"30/11/$Year"; break}
         12 {"31/12/$Year"; break}
    Return $date
    function startdate
        Param(
        [Parameter(Mandatory=$True,Position=1)]
        [string]$Month,
        [Parameter(Mandatory=$True,Position=2)]
        [string]$Year   
        $date=    switch ($month)
         1 {"01/01/$Year"; break}
         2 {"0/02/$Year"; break}
         3 {"01/03/$Year"; break}
         4 {"01/04/$Year"; break}
         5 {"01/05/$Year"; break}
         6 {"01/06/$Year"; break}
         7 {"01/07/$Year"; break}
         8 {"01/08/$Year"; break}
         9 {"01/09/$Year"; break}
         10 {"01/10/$Year"; break}
         11 {"01/11/$Year"; break}
         12 {"01/12/$Year"; break}
    Return $date
    #************* Function END *************
    #************* Script to Get Mailbox Statistics *************
    $ms = Get-Mailbox | Get-MailboxStatistics | select DisplayName, ItemCount, @{expression={[math]::Round($_.totalitemsize.value.ToKB())};label="TotalItemSizeMB"}
    [array]$stats = $null
    foreach ($m in $ms)
     $myobj1 = New-Object -TypeName PSObject -Property @{DisplayName = $m.DisplayName; ItemCount = $m.ItemCount; TotalItemSizeMB = [Math]::Round($m.TotalItemSizeMB/(1024*1024),2)};$stats+=$myobj1
    $stats | export-csv -path c:\temp\stats.csv -notypeinformation
    #************* Script to Get Mailbox Statistics Ends *************
    #************* Script to Get All Email Addresses *************
    $user=get-mailbox |Select-Object Name -expandproperty emailaddresses |select name, smtpaddress
    $user | Out-File C:\temp\emailaddress.csv -notypeinformation
    #************* Script to Get Email Addresses Ends *************
    #************* Script to Get incoming & outgoing mail count *************
    $date=(Get-Date).addmonths(-1)
    $ed=enddate $date.month $date.year
    $sd=startdate $date.month $date.year
    $sd = $sd + " 00:00:00"
    $ed = $ed + " 23:59:59"
    $user=get-mailbox |Select-Object Name -expandproperty emailaddresses |select name, smtpaddress
    [array]$temp = $null
    foreach ($i in $user){
    $icl = get-messagetrackinglog -recipient ($i.smtpaddress) -start $sd -end $ed -resultsize unlimited
    $temp+=$icl
    [array]$count=$null
    $temp  | where {($_.eventid -eq "Send") -or ($_.eventid -eq "Receive")}
    foreach
    $myobj2=New-Object -TypeName PSObject -Property @{Recipients=[string]$_.Recipients;eventid=$_.eventid}
    $count+=$myobj2

  • Exchange 2010 report not working

    Hi all,
    I'm trying to compose a mailbox size report for Exchange 2010. The output is to an html file that is automatically emailed to whoever I wish it to be. The functionality works GREAT, but the report is outputting no data. Can someone tell me why? I have multiple
    databases, but it still shouldn't output a file with NO data. Here is the script:
    #Variables to configure
    $MailServer = "my mail server"
    $ReportSender = "my email"
    $ReportRecipient = "their email"
    $MailSubject = ("Mailbox Report for " + $MailServer + " - " + ( get-date ).ToString('yyyy/MM/dd'))
    #SendEmailFunction
    Function sendEmail
    { param($smtphost,$htmlFileName)
    $smtp= New-Object System.Net.Mail.SmtpClient$smtphost
    $msg = New-Object System.Net.Mail.MailMessage $ReportSender, $ReportRecipient, $MailSubject, (Get-Content $htmlFileName)
    $msg.isBodyhtml = $true
    $smtp.send($msg)
    $exdata = Get-MailboxStatistics -Server $MailServer | Sort-Object TotalItemSize -descending | Select-Object DisplayName, ItemCount, TotalItemSize, StorageLimitStatus
    $fileName = "exchange2010Report.html"
    New-Item -ItemType file $fileName -Force
    # HTML start
    Add-Content $fileName "<html>"
    # HEAD start
    Add-Content $fileName "<head>"
    add-content $fileName '<STYLE TYPE="text/css">'
    add-content $fileName  "<!--"
    add-content $fileName  "td {"
    add-content $fileName  "font-family: Tahoma;"
    add-content $fileName  "font-size: 11px;"
    add-content $fileName  "border-top: 1px solid #999999;"
    add-content $fileName  "border-right: 1px solid #999999;"
    add-content $fileName  "border-bottom: 1px solid #999999;"
    add-content $fileName  "border-left: 1px solid #999999;"
    add-content $fileName  "padding-top: 0px;"
    add-content $fileName  "padding-right: 0px;"
    add-content $fileName  "padding-bottom: 0px;"
    add-content $fileName  "padding-left: 0px;"
    add-content $fileName  "}"
    add-content $fileName  "body {"
    add-content $fileName  "margin-left: 5px;"
    add-content $fileName  "margin-top: 5px;"
    add-content $fileName  "margin-right: 0px;"
    add-content $fileName  "margin-bottom: 10px;"
    add-content $fileName  ""
    add-content $fileName  "table {"
    add-content $fileName  "border: thin solid #000000;"
    add-content $fileName  "}"
    add-content $fileName  "-->"
    add-content $fileName  "</style>"
    # HEAD end
    Add-Content $fileName "</head>"
    # HEAD start
    Add-Content $fileName "<body>"
    # TABLE start
    Add-Content $fileName "<table width='100%'>"
    # TABLE Header
    Add-Content $fileName "<tr bgcolor='#7C7C7C'>"
    Add-Content $fileName "<td width='35%'>DisplayName</td>"
    Add-Content $fileName "<td width='10%'>ItemCount</td>"
    Add-Content $fileName "<td width='10%'>TotalItemSize</td>"
    Add-Content $fileName "<td width='25%'>Database</td>"
    Add-Content $fileName "<td width='20%'>StorageLimitStatus</td>"
    Add-Content $fileName "</tr>"
    $alternateTableRowBackground = 0
    # TABLE Content
    while($alternateTableRowBackground -le $exdata.length)
    if(($alternateTableRowBackground % 2) -eq 0)
    Add-Content $fileName "<tr bgcolor='#CCCCCC'>"
    else
    Add-Content $fileName "<tr bgcolor='#FCFCFC'>"
    Add-Content $fileName ("<td width='30%'>" + $exdata[$alternateTableRowBackground].DisplayName + "</td>")
    Add-Content $fileName ("<td width='10%'>" + $exdata[$alternateTableRowBackground].ItemCount + "</td>")
    Add-Content $fileName ("<td width='15%'>" + $exdata[$alternateTableRowBackground].TotalItemSize + "</td>")
    Add-Content $fileName ("<td width='25%'>" + $exdata[$alternateTableRowBackground].Database+ "</td>")
    #BelowLimit or NoChecking
    if(($exdata[$alternateTableRowBackground].StorageLimitStatus -eq "BelowLimit") -or ($exdata[$alternateTableRowBackground].StorageLimitStatus -eq "NoChecking"))
    Add-Content $fileName ("<td bgcolor='#007F00' width='20%'>" + $exdata[$alternateTableRowBackground].StorageLimitStatus+ "</td>")
    #IssueWarning
    if($exdata[$alternateTableRowBackground].StorageLimitStatus -eq "IssueWarning")
    Add-Content $fileName ("<td bgcolor='#7F7F00' width='20%'>" + $exdata[$alternateTableRowBackground].StorageLimitStatus+ "</td>")
    #ProhibitSend or MailboxDisabled
    if(($exdata[$alternateTableRowBackground].StorageLimitStatus -eq "ProhibitSend") -or ($exdata[$alternateTableRowBackground].StorageLimitStatus -eq "MailboxDisabled"))
    Add-Content $fileName ("<td bgcolor='#7F0000' width='20%'>" + $exdata[$alternateTableRowBackground].StorageLimitStatus+ "</td>")
    Add-Content $fileName "</tr>"
    $alternateTableRowBackground = $alternateTableRowBackground + 1
    # Summe Mailboxsize
    Add-Content $fileName "<tr bgcolor='#7C7C7C'>"
    Add-Content $fileName ("<td width='30%'></td>")
    $tempdata = MailboxStatistics -Server $MailServer | %{$_.ItemCount} | Measure-Object -Sum
    Add-Content $fileName ("<td width='10%'>" + ($tempdata | Select-Object -expand Sum) + "</td>")
    $tempdata = MailboxStatistics -Server $MailServer | %{$_.TotalItemSize.Value.ToMB()} | Measure-Object -Sum
    Add-Content $fileName ("<td width='15%'>" + ($tempdata | Select-Object -expand Sum) + " MB</td>")
    Add-Content $fileName ("<td width='25%'></td>")
    Add-Content $fileName ("<td width='20%'></td>")
    #TABLE end
    Add-Content $fileName "</table>"
    # HEAD end
    Add-Content $fileName "</body>"
    # HTML end
    Add-Content $fileName "</html>"
    sendEmail $MailServer $fileName
    Any help is appreciated. Thanks!

    You can make it simple on the HTML format...Try the below format on replacement of HTML format page..
    ## HTML PAGE FORMAT
    $a = “<style>”
    $a = $a + “BODY{background-color:Lavender;}”
    $a = $a + “TABLE{border-width: 1px;border-style: solid;border-color: black;border-collapse: collapse;}”
    $a = $a + “TH{border-width: 1px;padding: 0px;border-style: solid;border-color: black;background-color:Bisque}”
    $a = $a + “TD{border-width: 1px;padding: 0px;border-style: solid;border-color: black;background-color:Beige}”
    $a = $a + “</style>”
    ## HTML PAGE FORMAT
    $exdata = Get-MailboxStatistics -Server $MailServer | Sort-Object TotalItemSize -descending | Select-Object DisplayName, ItemCount, TotalItemSize, StorageLimitStatus | ConvertTo-Html -body “<h2> Mailbox Size Users List Report</h2>” -head $a |
    Set-Content c:\temp\Exchange2013UserReport.html
    Exchange Queries

  • Internal outlook client connectivity in exchange 2010 when coexist with exchange 2013

    Hi all ,
    on my side i would like to clarify few queries.
    Say for instance i am coexisting exchange 2010 with exchange 2013 .Unfortunately if all of my exchange 2013 servers goes down .
    Q1 .On that time will the internal outlook users having their mailboxes on exchange 2010 can be able to connect mailboxes without any issues ? In case if they face any issues what kind of issues will they be? Because why i am asking is we should have pointed
    the autodiscover service to exchange 2013 during coexistence.
    When an user closes and reopens the outlook after whole exchange 2013 environment failure ,outlook will first query the autodiscover service for the profile changes to get it updated on users outlook profile.In such case autodiscover service will not be
    reachable and i wanted to know will that affects the internal client connectivity for outlook users having their mailboxes on exchange 2010.
    Q2. Apart from outlook internal users connectivity ,what kind of exchange services(i.e owa,active sync,pop,external OA and imap) will get affected when whole exchange 2013 environment goes down during coexistence ?
    I have read the below mentioned statement on this awesome blog but still i wanted to clarify with you all on my scenario.
    http://blogs.technet.com/b/exchange/archive/2014/03/12/client-connectivity-in-an-exchange-2013-coexistence-environment.aspx<o:p></o:p>
    Internal Outlook Connectivity
    For internal Outlook clients using RPC/TCP connectivity whose mailboxes exist on Exchange 2010, they will still connect to the Exchange 2010 RPC Client Access array endpoint.
    For internal Outlook clients using RPC/TCP connectivity whose mailboxes exist on Exchange 2007, they will still connect directly to the Exchange 2007 Mailbox server instance hosting the mailbox.
    Please share me your suggestions and that would help me a lot .
    Regards
    S.Nithyanandham

    Hi Winnie Liang ,
    Thanks a lot for your reply.
    Scenario  1 : for internal outlook connectivity 
    We have below settings for exchange 2010 autodiscover.
    mail.domain.com - will be the namespace for internal autodiscover URI for all the exchange 2010 cas serves
    We are going to have below settings for exchange 2013 autodiscover.
    mail.domain.com - will be the namespace for internal autodiscover URI for all the exchange 2013 cas serves
    During coexistence mail.domain.com will be pointed to exchange 2013 cas servers . I mean to say if we try to resolve the mail.domain.com it will get resolved in to the exchange 2013 cas servers.
    So on such case if anything happened wrong to the new environment or else if entire environment goes down .Do we face any issues while outlook users connect to existing mailboxes in exchange 2010 ?
    Because why i am asking is ,on the below mentioned article i have read all the autodiscover request will go via exchange 2013 cas servers during coexistence.That means all the existing mailboxes in exchange 2010 will also have to query exchange 2013 cas
    servers for autodiscover request.During the whole exchange 2013 environemnt failure whenever the user tries to close and open outlook .Outlook will first queries the autodiscover service for any changes happened on that particular mailbox and it will try to
    get it updated on user profile.
    http://blogs.technet.com/b/exchange/archive/2014/03/12/client-connectivity-in-an-exchange-2013-coexistence-environment.aspx
    Would it be possible to make the exchange 2010 mailbox users to query only the scp points which belongs to the exchange 2010 cas servers for autodiscover request ?
    Scenario 2: For exchange services
    mail.domain.com - will be the namespace for all the exchange 2010 services (i.e owa,activesync,external outlook anywhere,pop,imap)
    mail.domain.com - will be the namespace for all the exchange 2013 services (i.e owa,activesync,external outlook anywhere,pop,imap)
    What about the above services will it get affected during whole exchange 2013 environment failure ?
    Note : We are not facing this issue , i hope everything goes well in my environment while doing coexistence i am just asking this question on my own interest?
    Regards
    S.Nithyanandham
    Thanks S.Nithyanandham

  • Exchange 2010 SP3 OWA with certificate based authentication

    Hi,
    I have a bizarre problem in my customer’s environment. Maybe someone has an idea.
    Exchange 2010 with SP3, latest cumulative Update installed.
    The problem I’m having is that when I enable Certificate based authentication (require client certificate option in IIS) on OWA and ECP virtual directories in conjunction with forms based authentication (this is the requirement – the user
    must have a client certificate and type in username and password to log in to OWA), the result is that after the user selects the certificate he wants to use, he is logged into OWA automatically, but cannot use the website, because it’s being constantly automatically
    refreshed (or redirected to itself or something like that). The behavior occurs with all users, with any browser. If client certificate is on required, forms based authentication works just fine. If I switch to “Basic Authentication” and enable client certificate
    requirement, then OWA act’s as it should be – so no problems. The problem only occurs when authentication type is forms based and client certificates are required.
    I have tried the exact same settings (as far as I can tell) on one other production server and one test server, and encountered no such problems.
    Anyone – any ideas?

    Hi McWax,
    According to your description and test, I understand that all accounts cannot login OWA when select require client certificate.
    Is there any error message when open OWA or login? For example, return error ”HTTP error: 403 - Forbidden”. Please post relative error for further troubleshooting.
    I want to confirm which authentication methods are used for OWA, Integrated Windows authentication or Digest authentication? More details about it, for your reference:
    http://technet.microsoft.com/en-us/library/bb430796(v=exchg.141).aspx
    If you select another authentication method, please check whether Client Certificate Mapping Authentication services is installed, and also enabled in IIS, please refer to:
    http://www.iis.net/configreference/system.webserver/security/authentication/clientcertificatemappingauthentication
    To prevent firewall factor, please try to sign in OWA at CAS server. Besides, I find a FAQ about certificate:
    http://technet.microsoft.com/en-us/library/aa998424(v=exchg.80).aspx
    Best Regards,
    Allen Wang

Maybe you are looking for

  • How to display the Standard Text (SO10) based on condition in adobe forms

    Hi, I have created the Standard texts (through SO10 tr.code) of 4 plant addresses. In the Layout of adobe form, i want to display any one plant address based on the plant number (as a input) and the rest 3 standard text need to be hide. i tried in Fo

  • Creating User Components

    Is it possible to create a custom component or function in Flash 8 that performes a set of complex animation features but that can be hidden from the user such that they can distribute or modify that code. Example I to license a custom animation tool

  • Playing out of one ear??

    I'm not sure if there's like a virus or something on my iPod or what, but it only plays out of one ear. Volume controls and main controls still work perfectly. At first i thought it was the headphones, but when i got my iPod 4th gen. i tried those ne

  • Mp3 clips over 800KB won't play???

    I'm building a website for a musician who wants mp3 clips of her music included so people can listen to music from her new CD. I got it all set up using the video/Quicktime plug-in, and it seemed to be working, but now any clips over about 800KB refu

  • I can't find which version of itunes I am using on windows

    I can't find which version I am using of itunes on windows.  Everything says go to help and check for update.  I don't have that option.