Using the Win32::OLE module, how would one get the currently logged in Windows user?
I found some information online, but it's mostly for VB users. I can use code I found
(looking at the Win32_LogonSession where LogonType=2) to get some information, but it's not
exactly what I want. I need the actual user name (not a number) and when their session
started.
Any help would be appreciated. I'm running this against Windows 7 workstations.
In reply to Query current logged in Windows user via WMI by wveagle81
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |