Configure Managed Folder Mailbox Policy logs
November 2, 2009VBScript to change user home directory with username variable
November 24, 2009Create a powershell script to generate the html file
Test-ReplicationHealth | ConvertTo-Html -title “BackupReport CCR” -body “Backup status per Storage Group” | Set-Content E:StorageGroupBackupStatus.html
note:
test-servicehealth
Create a powershell script to e-mail log file
$filename = “E:StorageGroupBackupStatus.html”
$smtpServer = “RelayServer”
$msg = new-object Net.Mail.MailMessage
$att = new-object Net.Mail.Attachment($filename)
$smtp = new-object Net.Mail.SmtpClient($smtpServer)
$msg.From = “from@emailaddress.com”
$msg.To.Add(“to@emailaddress.com”)
$msg.Subject = “CCR Status”
$msg.Body = “Attached is the CCR status”
$msg.Attachments.Add($att)
$smtp.Send($msg)
Go into task scheduler
For the program type this
C:WindowsSystem32WindowsPowerShellv1.0powershell.exe
For the arguments use
-PSConsoleFile “C:Program FilesMicrosoftExchange Serverbinexshell.psc1” -noexit -command “. ‘e:SendLogFile.ps1′”