Giter VIP home page Giter VIP logo

michelderooij / set-autorespondernotification Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 1.21 MB

Script to set AutoResponder inbox rule on an Exchange mailbox. This can be used to inform relations and partners sending messages to support mergers, acquisitions or rebranding.

Home Page: https://eightwone.com/2021/12/13/managed-autoresponder-notificiation/

License: MIT License

PowerShell 100.00%
exchange-server migration merger-acquisition-translator-tool acquisitions rebranding mergers-and-acquisitions mergers

set-autorespondernotification's Introduction

Set-AutoResponderNotification

Getting Started

Requirements

  • PowerShell 3.0 or later
  • Microsoft.Exchange.WebServices (EWS Managed API)
  • Microsoft.Identity.Client (MSAL)

Usage

$cred=Get-Credential
.\Set-AutoResponderNotification.ps1 -Identity michel@contoso.com -OldMail michel@fabrikam.com -Server outlook.office365.com -TemplateFile .\Template.xml -Credential $cred

Configure autoresponder rule on mailbox of [email protected], using previous e-mail address michel@fabrikam as inbox rule SendTo predicate. The autoresponder will be set using parameters stored in the template file, and Basic Authentication is used to authenticate.

$Secret= Read-Host 'Secret' -AsSecureString
.\Set-AutoResponderNotification.ps1 -Identity michel@contoso.com -OldMail michel@fabrikam.com -Server outlook.office365.com -TemplateFile .\Template.xml -TenantId '1ab81a53-2c16-4f28-98f3-fd251f0459f3' -ClientId 'ea76025c-592d-43f1-91f4-2dec7161cc59' -Secret $Secret

Configure autoresponder rule on mailbox of [email protected], using previous e-mail address michel@fabrikam as inbox rule SendTo predicate. The tenant indicated by specified identities is used to authenticate against, using specified application identity and provided secret. The autoresponder will be set using parameters stored in the template file.

$PfxPwd= Read-Host 'PFX password' -AsSecureString
.\Set-AutoResponderNotification.ps1 -Identity michel@contoso.com -Server outlook.office365.com -TemplateFile .\Template.xml -TenantId '1ab81a53-2c16-4f28-98f3-fd251f0459f3' -ClientId 'ea76025c-592d-43f1-91f4-2dec7161cc59' -CertificateFile .\AutoResponder.pfx -CertificatePassword $PfxPwd -Clear

Clear autoresponder rule on mailbox of [email protected]. The tenant indicated by specified identities is used to authenticate against, using specified application identity and provided pfx certificate file and pfx decryption password. The subject to look for will be taken from the specified template file.

Import-CSV Users.csv | .\Set-AutoResponderNotification.ps1 -Server outlook.office365.com -Impersonation -TemplateFile .\Template.xml -TenantId '1ab81a53-2c16-4f28-98f3-fd251f0459f3' -ClientId 'ea76025c-592d-43f1-91f4-2dec7161cc59' -Overwrite -CertificateFile .\AutoResponder.pfx -CertificatePassword (ConvertTo-SecureString 'P@ssw0rd' -Force -AsPlainText)

Configure autoresponder rule on mailboxes specified in CSV file using OldMail as predicate. The tenant indicated by specified identities is used to authenticate against, using specified application identity. The certificate used to authenticate is picked from the personal certificate store by looking for specified thumbprint. The autoresponder will be set using parameters stored in the template file. Any existing inbox rules with the same name will be overwritten.

About

License

This project is licensed under the MIT License - see the LICENSE for details.

set-autorespondernotification's People

Contributors

michelderooij avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  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.