Skip to content

Instantly share code, notes, and snippets.

@peevees
Last active March 5, 2022 15:22
Show Gist options
  • Save peevees/b1d90cb6f75d83f0a24315fe5d59d8a9 to your computer and use it in GitHub Desktop.
Save peevees/b1d90cb6f75d83f0a24315fe5d59d8a9 to your computer and use it in GitHub Desktop.
Interesting windows commands

Commands to check what woke up device:

powercfg -lastwake powercfg -devicequery wake_armed powercfg -energy (creates a list in C:\Windows\system32\energy-report.html.) powercfg -requests

disable auto mounting volumes:

go into Diskpart using commmand:

diskpart

then:

Automount disable --to disable Automount scrub --to enable

Scan system for errors:

sfc.exe /scannow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment