Achia2908
asked on
get mailbox forward rules
I can run this command without any issues
foreach ($i in (Get-Mailbox -Database d2010dag1-db2 -ResultSize unlimited)) { Get-InboxRule -Mailbox $i.DistinguishedName | where {$_.ForwardTo} | fl MailboxOwnerID,Name,Forwar dTo >> c:\temp\Forward_Rule-DB2.t xt}
But it writes out the distinguishedname I am trying to also get the primary smtp address of the mailbox
foreach ($i in (Get-Mailbox -Database d2010dag1-db2 -ResultSize unlimited)) { Get-InboxRule -Mailbox $i.DistinguishedName | where {$_.ForwardTo} | fl MailboxOwnerID,Name,Forwar
But it writes out the distinguishedname I am trying to also get the primary smtp address of the mailbox
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.