Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Out of office with powershell

$
0
0

Hello.

As a Global Admin of my domain I want to know if it is at all possible to set an Out of Office auto-reply through powershell to all my users or a distribution group.

I've researched a bit and I have found a single mailbox cmdlet:

Set-MailboxAutoReplyConfiguration [user@domain] –AutoReplyState Scheduled –StartTime “MM/DD/YYYY” –EndTime “MM/DD/YYYY” –ExternalMessage “Type External OOF message here” –InternalMessage “Type Internal OOF message here


And I know how to list the members on a said DG:

Get-DistributionGroupMember "group name"

But when I try to chain that first command with a pipe it just goes boom and nothing is changed.

Is this at all possible or would we have to do it manually for each mailbox?


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>