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..