[python-win32] Need a value from pywin32

Craig R. Matthews cmatthew at optonline.net
Fri Jun 17 02:41:48 EDT 2022


I have a need to determine the "IDLE TIME" as provided by the Windows 
Query program.

Sample output:
C:\>query user /server:CTX202201
  USERNAME              SESSIONNAME        ID  STATE   IDLE TIME LOGON TIME
  administrator         rdp-tcp#67          2  Active       1:38 
6/15/2022 10:48 AM


I can't find the above "IDLE TIME" anywhere in pywin32 "Python for Win32 
Extensions".

I need this time value, and would rather keep all the code in python 
without having to resort to something like subprocess to encapsulate the 
Windows Query program.

Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.python.org/pipermail/python-win32/attachments/20220617/da3b008f/attachment.html>


More information about the python-win32 mailing list