Forum Discussion

CameronMcmichael's avatar
CameronMcmichael
Copper Contributor
Aug 16, 2024

Use Powershell to print O365 Outlook Out of Office rules

I am looking into what I can pull for Outlook using Powershell but have only come across rules to get generic Rules & Alerts and generic settings for Out of Office.

I want to be able to pull the rule settings for Out of Office, Actions and Conditions any suggestions?

  • sdtslmn's avatar
    sdtslmn
    Brass Contributor

    CameronMcmichael 

     

    here is a step by step process

     

    Connect to Exchange Online

     

    Connect-ExchangeOnline -UserPrincipalName email address removed for privacy reasons

     

    Get OOO Configuration

     

    $oooConfig = Get-MailboxAutoReplyConfiguration -Identity "email address removed for privacy reasons"
    $oooConfig | Format-List

     

    This provides basic OOO settings like messages, start/end times, and status. For detailed rules or conditions, consider using EWS or the Microsoft Graph API.

     

     

Resources