Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

WMI IdleTime

Status
Not open for further replies.

Udir

Technical User
Aug 16, 2001
111
US
I am looking for a way to get the "idle time" being the time that since the last mouse or keyboard interaction? I looked at Win32_ServerSession.IdleTime. It returns a number that is not consistant with the amount of time that my computer has been idle "i.e. 0".

Is there another call that can get me the time since the user last moved the mouse or used the keyboard? I am trying to develop a script that will shut the computer down if there has been no activity for x amount of time after a particular time of day..

Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top