使用这个脚本,我存档旧邮件邮箱超过90天时间最古老的邮件文件PST文件名。
[DateTime] $Today = Get-Date
$Today = $Today.adddays(-30)
$Path = “PSTfileNAME” + $Today.tostring(“yyyy-MM-dd”) + “.pst”
Write-Host $Today.tostring(“yyyy-MM-dd” + ” 23:59:59″) -ForeGroundColor Yellow
Export-Mailbox -Identity targetmailbox -PSTFolderPath C:\PSTBAYI\$Path -EndDate $Today.tostring(“yyyy-MM-dd” + ” 23:59:59″) -Confirm:$false -deletecontent
Latest posts by Exchange中文站 (see all)
- 微软发布Azure PlayFab公众预览 - 2021年10月22日
- 微软发布全新云计算资料分析工具Azure Synapse - 2020年12月15日
- Exchange Server 版本号和发行日期汇总 - 2020年9月21日
发布于:
浏览:3267 次
还没有评论