Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 8583

reading values from xml

$
0
0

 </TaskHeader>

  <TaskDetails>

    <Item MailboxName="lior test">

      <Source>

        <Identity>ysds.co.il/Users OU's/HQ/Marketing/lior test</Identity>

        <DistinguishName>CN=lior test,OU=Marketing,OU=HQ,OU=Users OU's,DC=ysds,DC=co,DC=il</DistinguishName>

        <DisplayName>lior test</DisplayName>

        <Alias>liortest</Alias>

        <LegacyExchangeDN>/o=Services LTD/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=liortest</LegacyExchangeDN>

        <PrimarySmtpAddress>ltest@ysds.co.il</PrimarySmtpAddress>

        <SourceServer>MAILSTORE.ysds.co.il</SourceServer>

        <SourceDatabase>mailstore\SG6\MS6</SourceDatabase>

        <IsResourceMailbox>False</IsResourceMailbox>

        <SourceGlobalCatalog>DCHQ1</SourceGlobalCatalog>

      </Source>

      <MailboxSize>2705KB</MailboxSize>

      <Duration>00:00:00</Duration>

      <Result IsWarning="False" ErrorCode="0">Messages have been deleted from the source mailbox.</Result>

    </Item>

  </TaskDetails>

  <TaskFooter>

    <EndTime>06/06/2013 16:45:05</EndTime>

    <TotalSize>2705KB</TotalSize>

    <StandardMessagesDeleted>3</StandardMessagesDeleted>

    <AssociatedMessagesDeleted>0</AssociatedMessagesDeleted>

    <DumpsterMessagesDeleted>80</DumpsterMessagesDeleted>

    <Result ErrorCount="0" CompletedCount="1" WarningCount="0" />

  </TaskFooter>

</export-Mailbox>

 

I need to read the following values:

<Alias>

<StandardMessagesDeleted>

and send them to txt file: <Alias>, <StandardMessagesDeleted>

 

what the best way to do it?

 

Thanks

Lior

 


Viewing all articles
Browse latest Browse all 8583

Trending Articles