Tag Archives: Power Management

When did my Windows 10 last boot up?

Sometimes curious about this, usually because I forgot to note what time I arrived at the office, and I keep forgetting how to check. So, here’s some commands I found on SuperUser which seem to do the trick:

> systeminfo | find /i "Boot Time"
System Boot Time:          15.10.2021, 08:37:29
> wmic os get lastbootuptime
LastBootUpTime
20211015083729.500000+120
> net statistics workstation | find /i "Statistics since"
Statistics since 15.10.2021 08:37:45

Also discovered this one, which will create a more thorough report, which can be interesting to look at:

> powercfg /sleepstudy /output report.html && start report.html

What’s keeping my Windows computer awake

Just discovered a very simple way to find what’s keeping my Windows computer awake or my screen from going black.

  1. Open up an elevated command prompt.
  2. Run the following command
    > powercfg -requests

While playing a video in Windows Media Player I get this output:

DISPLAY:
[PROCESS] \Device\HarddiskVolume2\Program Files (x86)\Windows Media Player\wmplayer.exe

SYSTEM:
[DRIVER] High Definition Audio Device (HDAUDIO\FUNC_01&VEN_10EC&DEV_0888&SUBSYS_1458A102&REV_1000\4&1454c4ac&0&0001)
An audio stream is currently in use.
[PROCESS] \Device\HarddiskVolume2\Program Files (x86)\Windows Media Player\wmplayer.exe

AWAYMODE:
None.

EXECUTION:
None.

PERFBOOST:
None.

Simple and clear!