Reboot time


what type of tool (powershell or gui) on figuring out server how long client computers has been , has been rebooted?

hi,

locally, can use systeminfo | find /i "boot time"

or if want remotely using powershell, can use these 2 comands:

$lastbootuptime = get-wmiobject win32_operatingsystem -comp computername | select -exp lastbootuptime [system.management.managementdatetimeconverter]::todatetime($lastbootuptime)

alternatively can use ready-to-go script galley: https://gallery.technet.microsoft.com/scriptcenter/1918777c-1915-406f-8193-3febb6012d3c.

regards






Windows Server  >  Group Policy



Comments

Popular posts from this blog

CRL Revocation always failed

Failed to query the results of bpa xpath

0x300000d errors in Microsoft Remote Desktop client