The Script allows us to export mailbox / inbox rules for bulk users in CSV files. Code has been defined as per best practices used in hybrid exchnage environment across several organizations around the globe .Domain names and servers if any used in code are solely a part of test lab environment and does not points to any public or private organization's server in real world. Happy learning. Human knowledge belongs to the world .  

 

PowerShell
Edit|Remove
$mailboxes = Get-Content .\mailboxrule.csv 
$Results =  foreach ($mailbox in $mailboxes){ 
    Get-InboxRule -Mailbox $mailbox | 
        Select-Object MailboxOwnerID,Name,priority, description 
    } 
  
$Results | Export-Csv -Path C:\InboxRules.csv -NoTypeInformation