Skip to content
rakhesh.com

rakhesh.com

rakhesh sasidharan's mostly techie oh-so-purpley blog

  • Home
  • About
  • Quotes
  • Credits
  • Changelog
  • GitHub
  • Twitter
  • LinkedIn
  • Mastodon

Search

Subscribe via Feed

RSS | JSON

Categories

  • Asides (106)
  • Azure, Azure AD, Graph, M365 (127)
  • Books, Audiobooks, Podcasts (43)
  • Citrix (62)
  • Coding (27)
  • Docker (20)
  • Exchange, Exchange Online (42)
  • Gadgets (65)
  • Infrastructure (102)
  • Linux & BSD (61)
  • Mac (43)
  • Musings (50)
  • Networks (43)
  • Power Platform (15)
  • PowerShell (111)
  • TV, Movies, Music (66)
  • Virtualization (108)
  • Windows (270)
  • WordPress (9)

Quickly get the last boot up time of a remote Windows machine

PowerShell:

1
Get-WmiObject Win32_OperatingSystem -ComputerName <computer> | fl LastBootUpTime

Command Prompt/ WMI:

1
wmic /node:"<computer>" OS get LastBootUpTime

Double quotes are important for the WMI method.

Posted on April 25, 2016Author rakheshCategories PowerShell, WindowsTags wmic

Post navigation

Previous Previous post: Mute Solarwinds alerts during reboots/ maintenance windows
Next Next post: Find out which DCs in your domain have the DHCP service enabled