# Sometimes logged-in user doesn't appear in windows machine inventory. What could be the issue?

**URL:** <https://community.sapphireims.com/t/sometimes-logged-in-user-doesnt-appear-in-windows-machine-inventory-what-could-be-the-issue/561>\
**Category:** General\
**Tags:** faq\
**Created:** [April 8, 2021, 2:16pm UTC](https://community.sapphireims.com/t/sometimes-logged-in-user-doesnt-appear-in-windows-machine-inventory-what-could-be-the-issue/561 "2021-04-08T14:16:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![harish](https://avatars.discourse-cdn.com/v4/letter/h/47e85d/32.png) [@harish](https://community.sapphireims.com/u/harish)\
**Post date:** [April 8, 2021, 2:16pm UTC](https://community.sapphireims.com/t/sometimes-logged-in-user-doesnt-appear-in-windows-machine-inventory-what-could-be-the-issue/561/1 "2021-04-08T14:16:08Z")

</div>

If inventory is scheduled when users are not logged-in to machine, then inventory engine will not be able to fetch details of logged-in users. If inventory is scheduled while users are logged-in to machine, then inventory engine will fetch logged-in user details and present it on UI.

Please check the time of last inventory in SapphireIMS and see whether any user was logged-into specific machine during that period by checking Audit success events under eventlogs-\>security. You may also check last login time using below commands using command prompt -

net user [username; | findstr /B /C:“Last logon”  
E.g:  
For user administrator -  
net user administrator | findstr /B /C:“Last logon”  
For domain user jhon - with domain switch  
net user john /domain | findstr /C:“Last logon”
