The FlexNet Inventory Agent collects details about the last logged-on user account from multiple sources on a managed device. Understanding the order and logic used to gather this information helps you interpret inventory results and troubleshoot discrepancies.
Data sources for last logged-on user
The agent retrieves the last logged-on user by checking the following sources:
Win32_NetworkLoginProfileWMI class
The agent first identifies the most recent logon using instances of theWin32_NetworkLoginProfileWMI class.
To verify this value, run the following PowerShell command with local administrator rights:
Get-WMIObject Win32_NetworkLoginProfile | Select Name, LastLogon
NOTE: This source is used only when the LastLogonWMIEnabled agent preference is set to true (default). This capability was introduced in FlexNet Inventory Agent version R2.4 (2022).
- Registry entry
If the WMI query does not return results, the agent checks the following registry key to identify the last logged-on user account:
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI\LastLoggedOnUser
Win32_ComputerSystemWMI property
If neither of the previous sources returns a value, the agent retrieves the currently logged-on user account from theWin32_ComputerSystem.UserNameWMI property.
To verify this value, run the following PowerShell command:
Get-WMIObject Win32_ComputerSystem | Select UserName
IMPORTANT: The value returned when you run these commands manually may differ from what the inventory process reports. This difference occurs because manual execution runs at a different time and under a different user context than the inventory collection process.
Related Articles
Managing Oracle Universal Installer (OUI) evidence gathered by the FlexNet inventory agent 126Number of Views What data does the FlexNet inventory agent gather as file and installer evidence? 112Number of Views Application usage metering using the FlexNet inventory agent 194Number of Views Gathering diagnostic tracing from a FlexNet inventory agent process on Unix-like operating systems 142Number of Views Gathering last logged on user details during inventory collection on Windows may take a significant amount of time 6Number of Views
Hi, I am Reva - Ask me anything.
No new updates
Thanks for the feedback!
Your feedback has been saved.Rate this response:
Add Additional feedback ( Optional )
Are you sure you want to cancel
the case creation?
Are you sure you want to cancel the case creation?
Are you sure you want to close this case
| Products | Region | Phone Numbers |
|---|---|---|
| FlexNet Operations FlexNet Embedded FlexNet Publisher FlexNet Connect FlexNet Code Insight InstallAnywhere InstallShield |
North America * |
+1 630-332-2513 (toll) +1 877-279-2853 (toll-free in North America) |
| Europe * |
+44 1925 944367 (toll) +44 800 047 8642 (toll-free in Europe) |
|
| Japan * | +81 3-4540-5335 (select option 2) | |
| Australia * |
+61 3 9895 2177 +61 1800 560 603 (toll-free in Australia) |
|
|
Usage Intelligence (formerly
Revulytics) Compliance Intelligence |
Please use the Case Portal to submit your support ticket or reach out to your Revenera contact. | |
Revenera Assistant
Case id: 00001065
Activity: Status change: 2 hours ago