Good morning.
I have a PowerShell command here to show all the forwarding rules in an Exchange environment but I am looking to search for a specific target domain rather than all forwarding rules. The target forward domain is an external one.
Get-Mailbox -ResultSize Unlimited | Where {($_.ForwardingsmtpAddress -ne $Null)} | Select Name, ForwardingsmtpAddress, DeliverToMailboxAndForward
If I was looking for rules that only forwarded to *@Karima ben .com how would I incorporate that into the command?
Any help would be appreciated greatly. Thanks,
Christopher