This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Flexera Community
- :
- FlexNet Manager
- :
- FlexNet Manager Knowledge Base
- :
- Last logged-on user not showing for Apple devices
Subscribe
- Mark as New
- Mark as Read
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
Last logged-on user not showing for Apple devices
Last logged-on user not showing for Apple devices
In versions of FlexNet Manager Suite before 2021 R1.4, Apple devices may show the user that is currently logged on rather than the last logged-on user in the Last logged on field of the Ownership tab (Inventory Device Properties > Ownership tab). If no user was logged onto the Apple device when it was inventoried, you'll see the user listed as "System."
Read more about the Ownership tab.
Find the last logged-on user for Apple devices
If you are experiencing this issue, you can follow the instructions below to find the last logged-on user.
- Run the following query to determine the name of an Apple device that isn't showing when it was last logged on:
SELECT
ho.ComputerID AS ExternalID,
c.computercn,
LEFT(hv.Value, 250) AS LastLoggedOnUser
FROM dbo.HardwareObject AS ho
JOIN dbo.HardwareClass AS hc ON hc.HardwareClassID = ho.HardwareClassID
JOIN dbo.HardwareClass AS sc ON sc.HardwareClassID = hc.SuperClassID
JOIN dbo.HardwareValue AS hv ON hv.HardwareObjectID = ho.HardwareObjectID
JOIN dbo.HardwareProperty AS hp ON hp.HardwarePropertyID = hv.HardwarePropertyID
Join dbo.computer As C ON c.ComputerID = ho.ComputerID
WHERE sc.Class = 'CIM_UnitaryComputerSystem'
AND hp.Property = 'UserName'
AND hv.Value != 'SYSTEM'
and c.ComputerCN = <Name of Device>
This query will return something like the image below:
- If the previous query yields no results, you can alter it to remove AND hv.Value != 'SYSTEM'. This query will show if the user is displaying as "system" due to not being logged on when inventory was run last.
SELECT
ho.ComputerID AS ExternalID,
c.computercn,
LEFT(hv.Value, 250) AS LastLoggedOnUser
FROM dbo.HardwareObject AS ho
JOIN dbo.HardwareClass AS hc ON hc.HardwareClassID = ho.HardwareClassID
JOIN dbo.HardwareClass AS sc ON sc.HardwareClassID = hc.SuperClassID
JOIN dbo.HardwareValue AS hv ON hv.HardwareObjectID = ho.HardwareObjectID
JOIN dbo.HardwareProperty AS hp ON hp.HardwarePropertyID = hv.HardwarePropertyID
Join dbo.computer As C ON c.ComputerID = ho.ComputerID
WHERE sc.Class = 'CIM_UnitaryComputerSystem'
AND hp.Property = 'UserName'
and c.ComputerCN = <Name of Device>
- If nothing is returned from these queries, you will need access to the NDI File. In the NDI file, look at the top block called MGS_ComputerSystem. You should see the username listed here.
0
341
No ratings