Coder Social home page Coder Social logo

get-forwardingrules's Introduction

Get-ForwardingRules

This is a script to check and report on all 6 of the mailbox parameters for forwarding & redirecting.

3 of the methods are properties of the mailbox:

  • ForwardingAddress
  • ForwardingSmtpAddress
  • DeliverToMailboxAndForward

3 of the methods are types of rules :

  • DeliverToMailboxAndForward
  • ForwardingSmtpAddress
  • ForwardingAddress

This script will do the following:

  1. Connect to your Microsoft Online / Exchange Online Management
  2. Get all mailboxes in the environment (with get-EXOMailbox) (Note: this can take some time in large environments)
  3. Loops each mailbox looking for the mailbox properties used for automatic forwarding
  4. In each mailbox, loops through all email rules on each mailbox looking for the 3 types of rules used for automatic forwarding
  5. If mailboxes with results are found, they are added to a log file (configured on line 12)
  6. The following information is incleded in the log file:
    • Email Address
    • User display name
    • Rule priority (if a rule)
    • Rule description (if a rule)
    • Rule ID (if a rule)
    • Rule enabled status (if a rule)
    • Rule name (if a rule)
    • Forwrad to address (if a forwarding rule)
    • Redirect to address (if a redirect rule)
    • Forward as attachment to address (if a forward as attachment rule)
    • Deliver to mailbox aand Forward address (if that mailbox property)
    • Forwrading Smtp Address (if that mailbox property)
    • Forwarding Address (if that mailbox property)

get-forwardingrules's People

Contributors

cbshearer avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.