Created
February 16, 2016 20:28
-
-
Save gregjhogan/b4eca022f6dc21b504c0 to your computer and use it in GitHub Desktop.
Get windows uptime
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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