RSS

检查exchange server 2007的Mailboxdatabase挂载状态

28 Sep

首先bs一下微软的这个脚本

Get-MailboxDatabase ,对应查看数据库是否mounted的有一个属性,可是默认却不显示的。如下

肥唐教育我:一个命令不能只简单的看他的字面意思,你要挖掘!有没有点红宝书的风格? Get-MailboxDatabase –status 后,mounted属性就显示了。

最终的脚本如下

   1: Get-ExchangeServer | ? {($_.serverrole -eq "mailbox") -and ($_.admindisplayversion -like "*8.2*")}  | Get-MailboxDatabase -Status | ft storagegroup,name,mounted,edbfilepath -AutoSize | more
Advertisements
 
Leave a comment

Posted by on September 28, 2009 in Exchange Server

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: