How can I check last login on a Win 10 Desktop
-
I need a quick check of hte last time a desktop was logged in (any user).
Is there a quick powershell for this? Or do I need to check the event log?
-
Is this for the local or AD account?
-
AD account, but on a specific machine. Account is a roamer used on various machines.
-
This may be helpful. looks like you have to import the module first thought.
https://gallery.technet.microsoft.com/scriptcenter/Get-Active-Directory-user-246f17c7 -
Event log will be checked regardless either manually or powershell.
Script below:
https://gallery.technet.microsoft.com/scriptcenter/Get-LastLogon-Determining-283f98ae -
I just manually looked for events 7001 and 7002. got the job done.