Software >> OS >> Windows >> Command Line >> How to obtain the last logon date and time of all users

wmic PATH Win32_NetworkLoginProfile GET Name,LastLogon /format:csv