Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $Mailboxes = Get-Mailbox -RecipientTypeDetails SharedMailbox
- Foreach ($Mailbox in $Mailboxes) {
- Set-Mailbox $Mailbox -MessageCopyForSentAsEnabled $True -MessageCopyForSendOnBehalfEnabled $True
- }
- PowerShell.exe -noexit -command ". 'C:Program FilesMicrosoftExchange ServerV15binRemoteExchange.ps1'; Connect-ExchangeServer -auto; 'C:Program FilesMicrosoftExchange ServerV15binenablesentforshared.ps1'"
- VERBOSE: Connecting to exchangeserver.domain.com
- VERBOSE: Connected to exchangeserver.domain.com
- C:Program FilesMicrosoftExchange ServerV15binenablesentforshared.ps1
- [PS] C:UsersAdmin.domain>
- PowerShell.exe -noexit -command ". 'C:Program FilesMicrosoftExchange ServerV15binRemoteExchange.ps1'; Connect-ExchangeServer -auto; . 'C:Program FilesMicrosoftExchange ServerV15binenablesentforshared.ps1'"
- PowerShell.exe -noexit -command ". 'C:Program FilesMicrosoftExchange ServerV15binRemoteExchange.ps1'; Connect-ExchangeServer -auto; . C:ScriptGet-ExchangeEnvironmentReport.ps1 -HTMLReport C:ScriptGet-exchangeReport.html -SendMail:$true -MailFrom:Admin@domain.com -MailTo:user1@domain.com -MailServer:mail.domain.com"
Add Comment
Please, Sign In to add comment