{"id":2494,"date":"2018-06-04T20:04:20","date_gmt":"2018-06-04T20:04:20","guid":{"rendered":"http:\/\/microsoftgeek.com\/?p=2494"},"modified":"2018-06-04T20:04:20","modified_gmt":"2018-06-04T20:04:20","slug":"powershell-last-computer-boot-up-time","status":"publish","type":"post","link":"https:\/\/microsoftgeek.com\/?p=2494","title":{"rendered":"Powershell \u2013 Last Computer Boot-Up time"},"content":{"rendered":"<p>In Windows PowerShell\u00a03.0, use the\u00a0<b>Get-CimInstance<\/b>\u00a0cmdlet, and select the\u00a0<b>LastBootUptime<\/b><i>\u00a0<\/i>property from the Win32_Operatingsystem WMI class:<\/p>\n<p>&nbsp;<\/p>\n<p>PS C:\\&gt;<b>\u00a0Get-CimInstance\u00a0-ClassName\u00a0win32_operatingsystem | select\u00a0csname,\u00a0lastbootuptime<\/b><\/p>\n<p><a href=\"http:\/\/microsoftgeek.com\/wp-content\/uploads\/2018\/06\/GetImage.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-full wp-image-2495\" src=\"http:\/\/microsoftgeek.com\/wp-content\/uploads\/2018\/06\/GetImage.png\" alt=\"\" width=\"809\" height=\"295\" srcset=\"https:\/\/microsoftgeek.com\/wp-content\/uploads\/2018\/06\/GetImage.png 809w, https:\/\/microsoftgeek.com\/wp-content\/uploads\/2018\/06\/GetImage-300x109.png 300w, https:\/\/microsoftgeek.com\/wp-content\/uploads\/2018\/06\/GetImage-768x280.png 768w\" sizes=\"auto, (max-width: 809px) 100vw, 809px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In Windows PowerShell\u00a03.0, use the\u00a0Get-CimInstance\u00a0cmdlet, and select the\u00a0LastBootUptime\u00a0property from the Win32_Operatingsystem WMI class: &nbsp; PS C:\\&gt;\u00a0Get-CimInstance\u00a0-ClassName\u00a0win32_operatingsystem | select\u00a0csname,\u00a0lastbootuptime<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[59],"tags":[],"class_list":["post-2494","post","type-post","status-publish","format-standard","hentry","category-powershell"],"_links":{"self":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/2494","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2494"}],"version-history":[{"count":1,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/2494\/revisions"}],"predecessor-version":[{"id":2496,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/2494\/revisions\/2496"}],"wp:attachment":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2494"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2494"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2494"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}