[python-win32] WMI Win32_LoggedOnUser help

2011-09-02 Thread Rod Person
Hi, I've been experimenting with the wmi module and so far everything is working great, but I'm having an issue with the Win32_LoggedOnUser class. I can seem to access it's properties. When I run the code in debug I can see the information I want is being stored in the object but all attempts to

Re: [python-win32] WMI Win32_LoggedOnUser help

2011-09-02 Thread Tim Golden
On 02/09/2011 13:33, Rod Person wrote: Hi, I've been experimenting with the wmi module and so far everything is working great, but I'm having an issue with the Win32_LoggedOnUser class. I can seem to access it's properties. When I run the code in debug I can see the information I want is being

Re: [python-win32] WMI Win32_LoggedOnUser help

2011-09-02 Thread Rod Person
On Fri, 02 Sep 2011 14:56:10 +0100 Tim Golden m...@timgolden.me.uk wrote: I'm not entirely sure if this is what you're after, but I *think* it is: code import wmi c = wmi.WMI () for session in c.Win32_LogonSession (): print Session, session.LogonId for associated_user in