如何使用c#获取邮箱大小,邮件总数和lastlogon时间? [英] how to get the mailbox size , total no of mails and lastlogon time using c#?

查看:237
本文介绍了如何使用c#获取邮箱大小,邮件总数和lastlogon时间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好

 

我必须使用c#查找邮箱大小,lastlogon时间和其他相关信息但我不想要使用powershell。

I have to find the mailbox size , lastlogon time and other related information using c# but i dont want to use the powershell.

他们是否可以通过其他方式为Exchange Server 2010找到这些属性?

Is their any other way to find these properties for exchange server 2010 ?

谢谢

Sandeep

推荐答案


您好

Hi

 

我必须使用c#找到邮箱大小,lastlogon时间和其他相关信息,但我不想使用powershell。

I have to find the mailbox size , lastlogon time and other related information using c# but i dont want to use the powershell.

是他们的任何另一种为Exchange Server 2010查找这些属性的方法?

Is their any other way to find these properties for exchange server 2010 ?

谢谢

Sandeep



您好Sandep

Powershell是Exchage Server 2010的优秀产品


Hi Sandep
Powershell is the good one for Exchage Server 2010

我使用WMI做的任何方式对于Exchnage Server 2003我不知道Exchange Server 2010

根据我的知识,LDAP查询可能会这样做..

Any way I have do that using WMI For Exchnage Server 2003 I dont know for Exchange server 2010
As per my knowledge LDAP queries may be do that..

在Powershel:

In Powershel:

你可以得到那些细节唱下面的powershel命令

you can get that details Using the following powershel command

[PS] C:\ Windows \ system32> get-mailboxstatistics -Identity
JoSwa@xxxxx.com| format_list

[PS] C:\Windows\system32>get-mailboxstatistics -Identity JoSwa@xxxxx.com|format-list



RunspaceId               :bxvbhdc8-2312-4f94-906f-6ad6284fdce6

AssociatedItemCount     :13¥
DeletedItemCount        :0
$
DisconnectDate          :
$
DisplayName             :Joswa。
$
ItemCount               :12
$
LastLoggedOnUserAccount:xxxxxx \Joswa

LastLogoffTime          :2/22/2011 12:33:13 PM

LastLogonTime           :2/22/2011 12:28:17 PM

LegacyDN                :/ O = EXCHANGE / OU = EXCHANGE ADMINISTRATIVE GROUP(FYDIBOHF23SPDLT)/ CN = RECIPIENTS / CN = JoSwa

MailboxGuid              :511sd-36bf-472b-b5a5-29bcsdfd59dcc

ObjectClass             :邮箱

StorageLimitStatus      :BelowLimit

TotalDeletedItemSize    :0 B(0字节)

TotalItemSize           :45.33 KB(46,421字节)

数据库               :邮箱数据库1250sdf0387

ServerName              :RD49

DatabaseName            :邮箱数据库125sdf387
$
MoveHistory             :
$
IsQuarantined           :错误$
IsArchiveMailbox        :False

身份                :511cf927-36bc-479b-b5a5-29bc5sdfsd359dcc

MapiIdentity            :511df927-36bc-479b-b5a5-29bsdfs59dcc

OriginatingServer       :Mymachine.xxxx.com

IsValid                 :True


RunspaceId              : bxvbhdc8-2312-4f94-906f-6ad6284fdce6
AssociatedItemCount     : 13
DeletedItemCount        : 0
DisconnectDate          :
DisplayName             : Joswa.
ItemCount               : 12
LastLoggedOnUserAccount : xxxxxx\Joswa
LastLogoffTime          : 2/22/2011 12:33:13 PM
LastLogonTime           : 2/22/2011 12:28:17 PM
LegacyDN                : /O=EXCHANGE/OU=EXCHANGE ADMINISTRATIVE GROUP (FYDIBOHF23SPDLT)/CN=RECIPIENTS/CN=JoSwa
MailboxGuid             : 511sd-36bf-472b-b5a5-29bcsdfd59dcc
ObjectClass             : Mailbox
StorageLimitStatus      : BelowLimit
TotalDeletedItemSize    : 0 B (0 bytes)
TotalItemSize           : 45.33 KB (46,421 bytes)
Database                : Mailbox Database 1250sdf0387
ServerName              : RD49
DatabaseName            : Mailbox Database 125sdf387
MoveHistory             :
IsQuarantined           : False
IsArchiveMailbox        : False
Identity                : 511cf927-36bc-479b-b5a5-29bc5sdfsd359dcc
MapiIdentity            : 511df927-36bc-479b-b5a5-29bsdfs59dcc
OriginatingServer       : Mymachine.xxxx.com
IsValid                 : True


这篇关于如何使用c#获取邮箱大小,邮件总数和lastlogon时间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆