Announcement

Collapse
No announcement yet.

How to Get System Idle Time for All PC's

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to Get System Idle Time for All PC's

    Hi,

    want to find Out how frequently Users accessing there Desktop In 10 Hours.

    So was trying to Search a tool which will Fetch the idle System Condition from network for requested Systems !

    please suggest.

  • #2
    Re: How to Get System Idle Time for All PC's

    Originally posted by swapneel View Post
    Hi,

    want to find Out how frequently Users accessing there Desktop In 10 Hours.

    So was trying to Search a tool which will Fetch the idle System Condition from network for requested Systems !

    please suggest.
    Not really the System Idle time.

    http://en.wikipedia.org/wiki/System_Idle_Process

    My understanding is that the System Idle time will show when the CPU is inactive, this. I generally ignore it.

    I'm not really too sure on how to check for this but if you are suspecting users to not be doing their jobs then that is a task for the manager and HR not IT.

    Comment


    • #3
      Re: How to Get System Idle Time for All PC's

      Done a bit more digging for you.

      In VBScript you would use the Win32_Process option to check for process which will give you your System Idle Process.

      There is however nothing that will give you a "time" that the process is being used.

      http://msdn.microsoft.com/en-us/libr...=vs.85%29.aspx

      Code:
      On Error Resume Next 
      arrComputers = Array("ComputerName")
      For Each strComputer In arrComputers
          WScript.Echo
          WScript.Echo "===================================="
          WScript.Echo "Computer: "& strComputer
          WScript.Echo "===================================="
      
          Set objWMIService = GetObject("winmgmts:\\" & strComputer& "\root\CIMV2") 
          Set colItems = objWMIService.ExecQuery("SELECT * FROM Win32_Process", "WQL", wbemFlagReturnImmediately + wbemFlagForwardOnly) 
          For Each objItem in colItems 
          	If objItem.Name = "System Idle Process" Then
          	   Wscript.Echo "Name: " & objItem.Name
          	End If 
              'Wscript.Echo "Status: "& objItem.Status
          Next
      Next
      I can query for it ussing that script and according to the link there is nothing that will show the time used by the System Idle process, lets not forget that when this is in use nothing, yes nothing, is actually happening. This on a Windows PC is very seldom IME.

      Comment

      Working...
      X