Windows10でログイン/ログアウト時刻を調べる

2016/10/22

PowerShellを使えば簡単。 InstanceIDの7001がログイン、7002がログアウトですね。

PS C:\> Get-EventLog system -Source Microsoft-Windows-WinLogon -newest 10

   Index Time          EntryType   Source                 InstanceID Message
   ----- ----          ---------   ------                 ---------- -------
   59389 10 10 20:43   Information Microsoft-Windows...         7001 カスタマー エクスペリエンス向上プログラムのユー...
   59373 10 09 22:13   Information Microsoft-Windows...         7002 カスタマー エクスペリエンス向上プログラムのユー...
   59367 10 09 20:30   Information Microsoft-Windows...         7001 カスタマー エクスペリエンス向上プログラムのユー...
   59352 10 09 19:36   Information Microsoft-Windows...         7002 カスタマー エクスペリエンス向上プログラムのユー...
   59342 10 09 18:20   Information Microsoft-Windows...         7001 カスタマー エクスペリエンス向上プログラムのユー...
   59326 10 08 22:51   Information Microsoft-Windows...         7002 カスタマー エクスペリエンス向上プログラムのユー...
   59319 10 08 21:40   Information Microsoft-Windows...         7001 カスタマー エクスペリエンス向上プログラムのユー...
   59304 10 08 21:17   Information Microsoft-Windows...         7002 カスタマー エクスペリエンス向上プログラムのユー...
   59293 10 08 18:56   Information Microsoft-Windows...         7001 カスタマー エクスペリエンス向上プログラムのユー...
   59277 10 07 22:35   Information Microsoft-Windows...         7002 カスタマー エクスペリエンス向上プログラムのユー...


PS C:\>



おススメ