62

On Windows 7 Ultimate, is there a way to see when I logged on into the current session?

I want to find out how long I have been at the PC / when I started it up.

Gaff
  • 18,569
  • 15
  • 57
  • 68
magnattic
  • 1,246
  • 4
  • 13
  • 20
  • Details of how to set up an automatic history log of login/logon, lock and logoff times are provided at the Stackoverflow answer [Counting computer login times for the week](https://stackoverflow.com/questions/30692600/counting-computer-login-times-for-the-week/46989739#46989739) – MechtEngineer Dec 30 '17 at 11:41

9 Answers9

85

You can also use

quser

to see the login time.

Ƭᴇcʜιᴇ007
  • 111,883
  • 19
  • 201
  • 268
Catalyst
  • 1,077
  • 1
  • 7
  • 11
53

Use the following command in a Command Prompt:

net user [username]

It will be next to Last Logon.

EDIT
If your screen becomes locked and you use the method above it will display the last time the screen was unlocked. You will have to use this command below to get the initial login time:

quser
Shekhar
  • 5,009
  • 4
  • 33
  • 49
paradd0x
  • 9,149
  • 7
  • 37
  • 44
  • 6
    +1: "Net Statistics" tells you when the computer booted, not when the user logged in. – Ƭᴇcʜιᴇ007 Jul 13 '11 at 16:03
  • 4
    This doesn't seem to work if your account is from a different domain than the default domain for the computer you're logged into. At least my attempts to specify a different domain to search didn't work. – Trebor Rude Nov 07 '14 at 18:05
  • 1
    Try ```net user %USERNAME% /domain```, this worked when I was logged onto a domain. On another system, however, this command said it couldn't find the domain controller, but ```query user``` (or ```quser``` worked on that system) – PatS Jun 29 '18 at 14:16
10

Go to the command prompt and type:

net statistics srv
William Hilsum
  • 116,650
  • 19
  • 182
  • 266
  • The output I see says ```Statistics since 6/29/18 10:01:07 AM``` and since that is the only time shown, I'm guessing that is showing the time I logged in. Is that correct? The next answer says this was the time the computer was last rebooted, but in my case it appears to be the time I logged in. – PatS Jun 29 '18 at 14:22
  • The last option (srv) is language or installation specific. In my case it was "Arbeitsstationsdienst". Type net statistics without any additional option to get a list of available services. – schoetbi Dec 18 '18 at 07:25
6

I had the same issue for a network PC and this gave me results I was looking for:

wmic netlogin get name, fullname, lastlogon

...this will provide info for all users that have logged in.

Zachery
  • 61
  • 1
  • 1
4

You can also use

systeminfo

and next to

System Boot Time:

It will be in the format

9/17/2011, 10:16:38 PM
Alpine
  • 1,084
  • 1
  • 7
  • 15
3

Do this at a command line, I think it will show what you want:

net statistics server

The "Statistics since 7/12/2011 6:28:15 PM" line is the last time the computer was rebooted.

KCotreau
  • 25,519
  • 5
  • 48
  • 72
2

Use the command:

net stats srv

Where it says statistics since... is when you logged on/booted up.

Gaff
  • 18,569
  • 15
  • 57
  • 68
soandos
  • 24,206
  • 28
  • 102
  • 134
1

i am not a computerwizard, i am regularly using a utility may be it will help you login timer showing the system boot time here link http://logintimer.weebly.com

takio
  • 19
  • 1
-1

The exact answer probably depends on your exact situation.

The 'query user' or 'quser' command will show the last time you logged into the computer.

The 'net user ' command works, if you're not on a Domain. But (as someone else pointed out), this will show the last time you unlocked your screensaver.

If you're on a Domain, the 'net user /domain' command will show the last time that you logged into the Domain. But note that this time can differ from the last time you logged into the server.

If you sit down and power on your server every day, then the 'net statistics server' or 'net stats srv' command will show you the power-on time. Note that this time is not changed when the server hibernates or sleeps.