Guest User

Untitled

a guest
May 24th, 2018
516
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. $Mailboxes = Get-Mailbox -RecipientTypeDetails SharedMailbox
  2.  
  3. Foreach ($Mailbox in $Mailboxes) {
  4. Set-Mailbox $Mailbox -MessageCopyForSentAsEnabled $True -MessageCopyForSendOnBehalfEnabled $True
  5. }
  6.  
  7. PowerShell.exe -noexit -command ". 'C:Program FilesMicrosoftExchange ServerV15binRemoteExchange.ps1'; Connect-ExchangeServer -auto; 'C:Program FilesMicrosoftExchange ServerV15binenablesentforshared.ps1'"
  8.  
  9. VERBOSE: Connecting to exchangeserver.domain.com
  10. VERBOSE: Connected to exchangeserver.domain.com
  11. C:Program FilesMicrosoftExchange ServerV15binenablesentforshared.ps1
  12. [PS] C:UsersAdmin.domain>
  13.  
  14. PowerShell.exe -noexit -command ". 'C:Program FilesMicrosoftExchange ServerV15binRemoteExchange.ps1'; Connect-ExchangeServer -auto; . 'C:Program FilesMicrosoftExchange ServerV15binenablesentforshared.ps1'"
  15.  
  16. 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