Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Compare exchange autoreply message to template

$
0
0

Hi All,

Im in trouble. I try to explain the steps:

1. I create a template from an existing autoreply message (internalmessage)

Get-MailboxAutoReplyConfiguration -identity user | select -expandproperty InternalMessage | out-file "X:\internal.txt"

So, the template is in the internal.txt

2. Then, I try to compare the internal.txt and the result of (Get-MailboxAutoReplyConfiguration -identity user | select -expandproperty InternalMessage) but these are different. commands:

$temp = get-content "X:\internal.txt" -raw
compare-object $temp $(Get-MailboxAutoReplyConfiguration -identity user | select -expandproperty InternalMessage )

So the compare-object result is that the two of that are diff. Why?

The reason that i would like to do that to notice, whether someone's outofoffice message differ from my template.

Thank you in advance..


Viewing all articles
Browse latest Browse all 21975

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>