none
Outlook Rules RRS feed

  • Question

  • Is it possible to create an Outlook rule with PowerShell? I would like to add a 2 minute delay after sending an email and then push this out with Group Policy to everyone in our company.

    • Edited by Blue_Craig Monday, October 27, 2014 5:00 PM
    Monday, October 27, 2014 4:48 PM

Answers

  • If it's a client rule, you won't be able to do that with the Exchange cmdlets.  You might be able to using the Exchange Web Services (EWS) Managed API, but you'll need an account that either has full access to all the mailboxes, or can impersonate the mailbox owners.

    http://www.microsoft.com/en-us/download/details.aspx?id=42022


    [string](0..33|%{[char][int](46+("686552495351636652556262185355647068516270555358646562655775 0645570").substring(($_*2),2))})-replace " "

    • Marked as answer by Blue_Craig Friday, April 20, 2018 10:14 PM
    Wednesday, October 29, 2014 5:41 PM

All replies

  • Hi Craig,

    I'm not an Exchange guy, but it looks like there is some cmdlets to manage Inbox Rules if it can help

    Exchange 2013/Exchange Online:

    http://technet.microsoft.com/en-us/library/dd351062.aspx

    Exchange 2010:

    http://technet.microsoft.com/en-us/library/dd351062(v=exchg.141).aspx

    Some tutorial:

    http://rakhesh.com/powershell/managing-outlook-rules-using-powershell/

    Hope this helps


    Monday, October 27, 2014 6:19 PM
  • Because the rule I want to create is a client rule and not a server rule I don't think I will be able to use those cmdlets will I?
    Wednesday, October 29, 2014 5:05 PM
  • If it's a client rule, you won't be able to do that with the Exchange cmdlets.  You might be able to using the Exchange Web Services (EWS) Managed API, but you'll need an account that either has full access to all the mailboxes, or can impersonate the mailbox owners.

    http://www.microsoft.com/en-us/download/details.aspx?id=42022


    [string](0..33|%{[char][int](46+("686552495351636652556262185355647068516270555358646562655775 0645570").substring(($_*2),2))})-replace " "

    • Marked as answer by Blue_Craig Friday, April 20, 2018 10:14 PM
    Wednesday, October 29, 2014 5:41 PM