Created
July 25, 2022 08:05
-
-
Save SweetAsNZ/1f3019393a7dbb5f5dc39016eb41e7f2 to your computer and use it in GitHub Desktop.
Get Up Time
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
function Get-UpTime | |
{ | |
(Get-CimInstance -ClassName Win32_OperatingSystem | Select LastBootUpTime).LastBootUpTime | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment