Site icon WinCert

Get Last Logon time for a user

microsoft-windows2,mail,live,pps,windows 8 keyboard shortcuts,dual boot,re-voltwindows 7 search,windows 7 administrator,folder,services,uninstall,error code,consent,security log,file scan,windows update, format USB,addressed,video resolution,switch,trace boot, browsers,disable windows 10 updates

<p>If you would like to check the last logon time for a user here&&num;8217&semi;s how to do it&period;<&sol;p>&NewLine;<p>Open command prompt in elevated mode &lpar;run as administrator&rpar; and type the following command&colon;<&sol;p>&NewLine;<pre>net user username &vert; findstr &sol;B &sol;C&colon;"Last logon"<&sol;pre>&NewLine;<p>Where username is the name of the local user&period; For instance&colon;<&sol;p>&NewLine;<pre>net user administrator &vert; findstr &sol;B &sol;C&colon;"Last logon"<&sol;pre>&NewLine;<p>If you would like to check the last logon time for a domain user&comma; you should use the following command&colon;<&sol;p>&NewLine;<pre>net user username &sol;domain &vert; findstr &sol;B &sol;C&colon;"Last logon"<&sol;pre>&NewLine;<p>Where username is the name of the domain user you would like to check&period;<&excl;--more--><&sol;p>&NewLine;<p>You should get a result as shown in the picture below&colon;<&sol;p>&NewLine;<p><a href&equals;"https&colon;&sol;&sol;www&period;wincert&period;net&sol;wp-content&sol;uploads&sol;2016&sol;02&sol;last-logon&period;png" rel&equals;"attachment wp-att-1739"><img class&equals;"alignnone wp-image-1739 size-full" src&equals;"https&colon;&sol;&sol;www&period;wincert&period;net&sol;wp-content&sol;uploads&sol;2016&sol;02&sol;last-logon&period;png" alt&equals;"last logon" width&equals;"603" height&equals;"113" &sol;><&sol;a><&sol;p>&NewLine;<p>You can also use ADSI Edit from Active Directory Administration tools&period;<&sol;p>&NewLine;<p>Open ADSI Edit and navigate to the desired user&period; From the left pane right-click on the user and click properties&period;<&sol;p>&NewLine;<p>In the Attribute editor scroll down to <strong>lastLogon attribute<&sol;strong> to check the users last logon time&colon;<&sol;p>&NewLine;<p><a href&equals;"https&colon;&sol;&sol;www&period;wincert&period;net&sol;wp-content&sol;uploads&sol;2016&sol;02&sol;last-logon-time&period;png" rel&equals;"attachment wp-att-1740"><img class&equals;"alignnone wp-image-1740 size-full" src&equals;"https&colon;&sol;&sol;www&period;wincert&period;net&sol;wp-content&sol;uploads&sol;2016&sol;02&sol;last-logon-time&period;png" alt&equals;"last logon time" width&equals;"374" height&equals;"157" &sol;><&sol;a><&sol;p>&NewLine;<p>If you would like to monitor last logon times for users you should enable this setting in local security policy or in a domain policy&period;<&sol;p>&NewLine;<p>Open group policy editor by running <strong>gpedit&period;msc<&sol;strong> command&period;<&sol;p>&NewLine;<p>Navigate to&colon;<br &sol;>&NewLine;<strong>Computer Configuration &vert; Windows Settings &vert; Security Settings &vert; Local Policies &vert; Audit Policy<&sol;strong><&sol;p>&NewLine;<p>In the right pane select <strong>Audit logon events<&sol;strong>&period; Check both <strong>Success<&sol;strong> and <strong>Failure<&sol;strong>&comma; or just <strong>Success<&sol;strong> check boxes&period;<&sol;p>&NewLine;<p>Close the policy editor and restart your machine&period; Logon event will now be recorded in <strong>Event Viewer &vert; Windows Logs &vert; Security<&sol;strong>&period;<&sol;p>&NewLine;<p>Feel free to leave your comments below&period;<&sol;p>&NewLine;

Exit mobile version