Quantcast
Channel: Exchange Server-forum
Viewing all articles
Browse latest Browse all 9623

创建Exchange Powershell脚本任务

$
0
0

微软专家,您好,

我想在Exchange Server上面创建一个任务,任务的内容为每天通过Exchange Powershell运行如下命令(强制更新每个邮箱数据库的状态),命令如下:

Get-MailboxStatistics -Database DBNAME | foreach {Update-StoreMailboxState -Database $_.Database-Identity $_.MailboxGuid -Confirm:$False}

DBNAME为变量,它定义为所有Exchange邮箱数据库。

请问该脚本如何编写?

脚本的执行我知道通过Win Server自带的任务计划创建。

期待您的回复。


Viewing all articles
Browse latest Browse all 9623

Latest Images

Trending Articles

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>