Created
May 20, 2015 11:20
-
-
Save alexinnes/18202006f8473b1ff6b5 to your computer and use it in GitHub Desktop.
Quick script to check when the computer has been rebooted.
This file contains 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
# | |
# RebootTime.ps1 | |
# | |
Set-ExecutionPolicy -ExecutionPolicy Bypass | |
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