搜索邮箱服务器应用程序日志和报告可用的数据库空间。
$result=”Database”+”`t”+”Whitespace (MB)”+”`n”
$date=get-date -format “M/d/yyyy”
$server = get-mailboxserver
foreach ($i in $server){
$pslog = new-object System.Diagnostics.EventLog(“Application”, “$i”)
$colevents= $pslog.Entries | where-object { ($_.EventID -like “1221”) – AND ($_.TimeGenerated -like “$date*”)}
foreach ($j in $colevents) {$result+= $j.replacementstrings[1]
+”`t”+$j.replacementstrings[0]+”`n”}
}
$result > c:\temp\test.xls
Latest posts by Exchange中文站 (see all)
- 微软发布全新云计算资料分析工具Azure Synapse - 2020年12月15日
- Exchange Server 版本号和发行日期汇总 - 2020年9月21日
- Project OneFuzz – Azure发布了开源模糊测试框架 - 2020年9月20日
发布于:
浏览:1268 次
还没有评论