Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is there a command or a GUI tool in Windows 7 to get 1) uptime

2) last user logged in time and date

3) machine last rebooted

Thank you

share|improve this question

7 Answers 7

I know that login/logout times can be found under the Security section of Windows Logs in Event Viewer. It's worth looking around on Event Viewer to find other information you require.

Found in: Control Panel (Classic view) > Administrative Tools

or hit start and type "event viewer" into the search.

This may also help.

share|improve this answer

Surely when you know 1 you can work out 3?

You can find out the uptime from the command line using this command:

net statistics server | find "Statistics since"
share|improve this answer

the task manager will show up time under the performance tab

share|improve this answer

Using ‘Net user’ command we can find the last login time of a user. The exact command is given below.

**net user  **username** | findstr /B /C:"Last logon"**

Change username with username of your PC.

Example: To find the last login time of the computer administrator

**C:\> net user administrator | findstr /B /C:"Last logon"
Last logon                   6/30/2010 10:02 AM
C:>**

and this would be helpfull

net user username

share|improve this answer
    
with administrator it shows nothing, but with my username is says "The user name could not be found" –  Tom Stickel Jun 27 '13 at 16:58
    
This will only work on local accounts (e.g. Administrator, Guest), not network logins –  Samuel O'Malley Jun 29 at 22:19

Go to command prompt (type cmd into start menu) and enter quser. It shows the dates of all [current] users' logins. administrator will show the time the computer was last booted.

This will still display the correct logon times even if the workstation's screen has been locked some time during the session.

You may then use a net date calculator to figure out how long they (or the computer) has been on.

share|improve this answer
    
Not work for me. 'quser' is not recognized as an internal or external command, operable program or batch file. –  Lưu Vĩnh Phúc Jun 14 at 10:09
    
reading this it looks like you can type query user as an equivalent alternative. Although maybe your version of Windows doesn't include it. Im on x64 win7 –  Hashbrown Jun 15 at 2:18
    
query user doesn't work either. I'm on win8 64 bit –  Lưu Vĩnh Phúc Jun 15 at 2:24
    
Just tried it on my tablet; still works (8.1 Pro). Maybe you have basic, sorry, I don't know why you don't have it –  Hashbrown Jun 15 at 7:27

Well, I don't know about last user, but uptime/reboot, you can use the following gadget:

http://gallery.live.com/liveItemDetail.aspx?li=9edd60d7-5810-44b4-a72e-b3416de5758b

Don't worry about the image quality, the little screenshot is really distorted, but i've been using it for years now on Vista, and 7, and it has been working beautifully.

It shows you the time your computer has been up in the format:

w days
x hours
y minutes
z seconds

share|improve this answer

Try System Up Time Monitor 5.5

This program will display the system started Date & Time , how long the pc is running now etc. You can ask the program to shutdown the pc, restart, hibernate etc when a perticuler time reached.
Note: The program can monitor up to 49days.
Supports Windows 200 / XP/ vista. 

Should work with Windows 7. But haven't tested yet.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.