I logged in to my Windows 7 Enterprise machine by tests user which is standard user and runs command to check last logon info. Pleaser refer below output.
>net user tests | findstr "logon"
Last logon 9/16/2021 12:18:17 PM
Then I run same command for testa user which is administrator user for same machine.
>net user testa | findstr "logon"
Last logon 9/16/2021 11:36:17 PM
Till now net user was showing expected information. Later I started services.msc with run as administrator by providing testa user's credentials, and again executed same command. But this time last logon timestamp was changed as mentioned below.
>net user testa | findstr "logon"
Last logon 9/16/2021 12:19:17 PM
So, Please anyone can help me with explanation what's happening here because mostly I worked in linux platform quite new to windows.
Does windows starts session for admin users whenever run as administrator action is triggered ?
Does there is any better way to find out last logon time for all users in windows ?