Skip to content

Instantly share code, notes, and snippets.

@h3nryza
Created July 17, 2018 17:50
Show Gist options
  • Select an option

  • Save h3nryza/8b7bf745d78ef1b41c8540055a463633 to your computer and use it in GitHub Desktop.

Select an option

Save h3nryza/8b7bf745d78ef1b41c8540055a463633 to your computer and use it in GitHub Desktop.
PowerShell Last Reboot
Get-WmiObject win32_operatingsystem | select @{LABEL="LastBootUpTime";EXPRESSION={$_.ConverttoDateTime($_.lastbootuptime)}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment