42

Is there a command or a GUI tool in Windows 7 to get the following?

  1. Uptime.
  2. Last user logged in time and date.
  3. Machine last rebooted.
Giacomo1968
  • 58,727
windows7user
  • 421
  • 1
  • 4
  • 3

10 Answers10

20

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.

Hashbrown
  • 3,338
  • 4
  • 39
  • 51
17

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.

12

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"
8
  1. Start Command Prompt.
  2. Enter cd C:\Windows\system32 and press Enter.
  3. Then write quser and press Enter.
Thor
  • 4,043
nikolai
  • 81
6

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

user233102
  • 61
  • 1
  • 1
4

the task manager will show up time under the performance tab

cracked22
  • 101
2

Here is all the points you are looking for:
You can download the script and GUI.
You need to use as administrator Level.
You also need to create computers.txt file under C:\
That is what his script say and save whatever pc/servers you want to query.

I found this absolutely useful, Full credit to Gandalf50. Link is here >>> ScriptCentre Gurus

mic84
  • 2,413
1

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

eidylon
  • 1,829
1

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.

Sameer Alibhai
  • 259
  • 1
  • 3
  • 8
ukanth
  • 10,800
1

quser - accurate last login, evidently not available in every type of Windows edition (professional vs basic and all)

net user administrator | findstr /B /C:"Last logon" - reports the time of last unlock or login - unlock being not what you are looking for.