Exchange Powershell查看用户最后登陆邮箱时间

简介:

在Exchange日常管理中,我们可能经常会遇到这样的问题,就是怎么来知道一个用户最后的登录时间?这个问题在使用Exchange powershell就能很好的解决了。

用管理员身份运行Exchange management powershell

image

查看某一个邮箱数据库的统计信息,输入Get-MailboxStatistics -database'mailboxdatabase'

image

加上参数sort lastlogontime -Descending就能对登录时间进行一个降序排序。

加上sort lastlogontime -Unique的话就是以升序进行排序

下面示例以降序显示:

Get-MailboxStatistics -database'mailboxdatabase' | sort lastlogontime -Descending

image

 

查询某台邮箱角色服务器上的用户登录时间。

Get-MailboxStatistics –server‘server’

image

针对某一个用户的查询

Get-MailboxStatistics ‘user’|fl

image

 

Exchange的Powershell能做出很多很多EMC中无法做到的管理操作,管理上非常的强大。


















本文转自李珣51CTO博客,原文链接: http://blog.51cto.com/lixun/929030,如需转载请自行联系原作者




相关文章
|
4月前
|
存储 Ubuntu Linux
windows可以安装Ubuntu,ubuntu上也可以安装Powershell
powerhsell除了可以在windows上使用外,还可以在Ubuntu上部署开发环境。下面介绍Ubuntu上安装powershell的方法。
53 0
|
6月前
|
Shell Linux 开发工具
windows中cmd和PowerShell批处理命令
之前在 Git 批量删除本地分支,有用到 Linux 或 MacOS 下的批处理命令,这个命令中的 grep、xargs 本身是 Shell script,在 windows 中的 cmd 和 PowerShell 中是不能用的
51 0