Is it possible to determine the time since a Windows 7 machine was last unlocked. By unlocked I mean the user locks the machine by clicking Start->ShutDown->Lock or by pressing the Windows key + L, and then at a later time unlocks the machine by clicking on the user icon (and depending on settings typing in password)?
feedback
|
|
Open Event Viewer, browse to Windows Logs > Security and look for an event with ID 4624:
Logon Type: 7 indicates a workstation unlock. | |||
|
feedback
|
|
I don't know of any pre-made solutions for this. You would probably have to set up a set of scripts to detect the workstation lock and unlock events, and then mark the time at which the event happened (and calculate the difference or alike). You can pull this off in PowerShell; and there's an answer on StackOverflow which explains this and provides and example usage/scripting to get you started. | |||
|
feedback
|
