Determining System Uptime


Using WMI to determine when a system last booted up

1
2
$a = (get-wmiobject win32_operatingsystem)
$a.ConvertToDateTime($a.lastbootuptime)

,

  1. No comments yet.
(will not be published)