Skip to content

Instantly share code, notes, and snippets.

@seyerj
Created June 6, 2023 20:46
Show Gist options
  • Save seyerj/7c2e6720b2bb2358bcaab448c53f20db to your computer and use it in GitHub Desktop.
Save seyerj/7c2e6720b2bb2358bcaab448c53f20db to your computer and use it in GitHub Desktop.
get uptime cim - quick n dirty
Get-CimInstance -ClassName Win32_OperatingSystem | Select LastBootUpTime
@seyerj
Copy link
Author

seyerj commented Jun 6, 2023

quick and dirty, might not be 100% accurate

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