Alerta administrativo de cotas do Exchange 2013

1

Gostaria que o Exchange 2013 enviasse alertas de cotas para administradores, bem como para usuários individuais, para que ficássemos cientes da situação.

Eu encontrei este guia para o Exchange 2010, mas nada para 2013. link

Alguém sabe como fazer isso para o Exchange 2013?

Obrigado

    
por ltwally 23.07.2015 / 22:37

2 respostas

1

Descobri isso. Eu adicionei uma nova regra em ECP > Fluxo de Mensagens > Regras.

Aplique esta regra se ... O assunto ou corpo incluir ... "sua caixa de correio é"

Faça o seguinte ... Bcc a mensagem para ...

    
por 23.07.2015 / 22:52
0

Para ser alertado sobre a condição de que um usuário não pode enviar e-mails.

Crie um acionador para o ID de evento 1078. Obtê-lo para executar um arquivo cmd

CMD
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -psconsolefile "E:\Program Files\Microsoft\Exchange Server\v15\bin\exshell.psc1" -file "E:\QuotaBreach.ps1"

Script QuotaBreach.ps1

###################################################
# Check for existence of output file and delete it.
###################################################
$checkfile = Test-Path "E:\QuotaBreach.htm" 

If ($checkfile -like "True")

{
   Remove-Item "E:\QuotaBreach.htm"
}

##################################################
# Pull data out of Event and process cmdlet
##################################################

$address = Get-Eventlog -Logname "Application" -Source "MSExchangeIS" | where {$_.eventID -eq 1078} | select -first 1 | select @{n='SID';e={$_.ReplacementStrings[0]}} 

foreach ($sid in $address)
 {
      $mailbox = (get-mailbox $address.sid | select displayname)
      Get-MailboxfolderStatistics -Identity $sid.sid -FolderScope All -includeoldestandnewestitems  | select FolderPath,@{N="FolderSize (MB)";E={$_.FolderSize.ToMB()}},oldestitemreceiveddate,Newestitemreceiveddate,ItemsInFolder,ItemsInFolderAndSubFolders | convertto-html | out-file E:\QuotaBreach.htm -append
 }

 #################################################
 # Compile email and send
 #################################################

 $body = get-content E:\QuotaBreach.htm | Out-String
$recipients = "[email protected]", "[email protected]"

 send-mailmessage -from "[email protected]" -to $recipients -subject "$($mailbox.displayname) - Mailbox Breach"  -BodyAsHtml -body $body  -priority High -smtpServer "mail.company.co.uk"

 #################################################
    
por 24.05.2017 / 10:47