使用Power Shell从Exchange Server检索的日期和时间值的时区问题 [英] An issue regarding time zones of Date and Time values retrieved from Exchange Server using Power Shell

查看:69
本文介绍了使用Power Shell从Exchange Server检索的日期和时间值的时区问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


大家好,

Hello folks,


我需要你的帮助因为我是MS Exchange和Power Shell技术的新手。

I need your help as I'm pretty new in MS Exchange and Power Shell technologies.


所以这是我的问题......

So here is my question...


我怎样才能返回使用Exchange Power Shell控制台远程校准下面以UTC格式列出的日期和时间值(远程服务器可能位于不同的时区):

How can I retrieve Date and Time values listed below in UTC using Exchange Power Shell console remotely (the remote server might be in different time zone):



  •    上次成功同步  (Get-ActiveSyncDeviceStatistics cmdlet)

  •    上次检查的日志时间  (Get-MailboxDatabaseCopyStatus cmdlet)

  •    Last Account Stat Date  (Get-MailboxDatabase cmdlet)

  •    上次登录时间,  Last
    Modified
     (Get-MailBox cmdlet)
  •   Last Successful Sync (Get-ActiveSyncDeviceStatistics cmdlet)
  •   Last Inspected Log Time (Get-MailboxDatabaseCopyStatus cmdlet)
  •   Last Account Stat Date (Get-MailboxDatabase cmdlet)
  •   Last Logon TimeLast Modified (Get-MailBox cmdlet)


请提供与时区处理相关的正确Power Shell查询部分。 

Please provide correct Power Shell query part related to timezone's handling. 


提前致谢!

Thanks in advance!

推荐答案

怎么样: 

What about: 

Get-MailboxDatabaseCopyStatus | Select-Object DatabaseName,@ {Name =" LastInspectedLogTime" ;; Expression = {(

Get-MailboxDatabaseCopyStatus | Select-Object DatabaseName, @{Name="LastInspectedLogTime";Expression={(


_。LastInspectedLogTime.ToUniversalTime())}}
_.LastInspectedLogTime.ToUniversalTime())}}

这可以解答我的问题???

Can It be the answer to my question???


这篇关于使用Power Shell从Exchange Server检索的日期和时间值的时区问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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