Link to home
Start Free TrialLog in
Avatar of Achia2908
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,ForwardTo >> c:\temp\Forward_Rule-DB2.txt}

But it writes out the distinguishedname I am trying to also get the primary smtp address of the mailbox
ASKER CERTIFIED SOLUTION
Avatar of Jeremy Weisinger
Jeremy Weisinger

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial