Hi Guys:
I have a question about the exchange server 2013, I want to make a task schedule to check the three mailbox database
storage and save it to .csv files, then send the email to the administrator to know this. how should i do this?
our server is windows server 2012, the first i need to create a task schedule in windows server 2012, the configurations is
like the following:
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe //this is the powershell program location
//this is the parameters
-command ". 'D:\Program Files\Microsoft\Exchange Server\V15\bin\RemoteExchange.ps1'; Connect-ExchangeServer -auto;
//this is the three database of the exchang server, i get the information that i need
Get-Mailbox -database DB01 | Get-Mailboxstatistics |sort totalitemsize -desc |ft displayname,totalitemsize,DatabaseIssueWarningQuota,DatabaseProhibitSendQuota,itemcount >d:\report\DB01.csv; Get-Mailbox -database DB02|Get-Mailboxstatistics |sort totalitemsize -desc |ft displayname,totalitemsize,DatabaseIssueWarningQuota,DatabaseProhibitSendQuota,itemcount >d:\report\DB02.csv; Get-Mailbox -database DB03|Get-Mailboxstatistics |sort totalitemsize -desc |ft displayname,totalitemsize,DatabaseIssueWarningQuota,DatabaseProhibitSendQuota,itemcount>d:\report\DB03.csv
after that, i want to write a batch file to send the DB01.csv,DB02.csv,DB03.csv this three files in emails to my mailbox.
how to do this, is there anyone can help me?
now the task shedule is not working, it can not ouput the three csv files.