PowerShell script for listing login/logout in Windows 8/2012

We have some scripts that show login/logoff at start/shut down but we could not figure out how to show them when the computer goes to sleep or when it’s locked and the user logged in.
mihaiszAsked:
Who is Participating?
 
Manpreet SIngh KhatraConnect With a Mentor Solutions Architect, Project LeadCommented:
You can have this as a normal script that will run at end of day or after hours to get the information ..... is this a ActiveDirectory environment or a simply work-group machines ?

- Rancy
0
 
Manpreet SIngh KhatraSolutions Architect, Project LeadCommented:
I am unsure if there is such script for this as its more of a eventViewer it checks for Login and Logout detils or from the Attributes

- Rancy
0
 
mihaiszAuthor Commented:
I'd like to automate monitoring login/logout since it will be used to audit timesheets.
Do you know of any commercial tools that can extract this information?
0
 
mihaiszAuthor Commented:
Active Directory   - all user PCs are connected to the company domain.
Can you post a sample script?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.