#Add Exchange 2010 Powershell Commands, run the Exchange scripts and connect to the environment add-pssnapin Microsoft.Exchange.Management.PowerShell.E2010 . 'C:\Program Files\Microsoft\Exchange Server\V14\bin\RemoteExchange.ps1' Connect-ExchangeServer -auto #IT department test, in the future all that would need to be edited is the $ITManager variable for whomever this needs to go to" $ITManager = "IT Manager Mailbox Name" $CompanyName = "Name of Company" #Get the actual IT Manager's mailbox and set the variable for the primary SMTP Address (this script wouldn't work otherwise) $ITManagerMailbox = get-mailbox -Identity $ITManager $ITSmtp = $ITManagerMailbox.primarysmtpaddress #Set the forwarding, then set the auto reply. We can add an internal message too if needed get-mailbox -OrganizationalUnit "PathToOUContainingOldUserMailboxes" | Set-Mailbox -DeliverToMailboxAndForward $true -ForwardingAddress $ITManagerMailbox.Identity get-mailbox -OrganizationalUnit "PathToOUContainingOldUserMailboxes" | Set-MailboxAutoReplyConfiguration -AutoReplyState Enabled -ExternalAudience all -ExternalMessage "Hi! I am no longer with $CompanyName. Please update your contacts to send e-mail to my manager $ITManager at $ITSmtp"