Skip to content

Instantly share code, notes, and snippets.

@gregjhogan
Created February 16, 2016 20:28
Show Gist options
  • Select an option

  • Save gregjhogan/b4eca022f6dc21b504c0 to your computer and use it in GitHub Desktop.

Select an option

Save gregjhogan/b4eca022f6dc21b504c0 to your computer and use it in GitHub Desktop.
Get windows uptime
Get-WmiObject win32_operatingsystem | select csname, @{LABEL=’LastBootUpTime’;EXPRESSION={$_.ConverttoDateTime($_.lastbootuptime)}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment