powershell

Set out-of-office programmatically in O365 with powershell

Part of our employee synchronization from employee database to our AD is setting an out-of-office message in Office365 when the user gets disabled (to send a notice that the user no longer works here to whoever sends that person an email), and removing the message when that same person comes back to work. For this, I made a powershell script (damn, I love powershell) that lists all disabled users in our AD and goes through everyone checking if it has a message set up, if not then it sets one.

Script can be found here, in my projects folder.

Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments