Skip to content
rakhesh.com

rakhesh.com

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

  • Home
  • About
  • Quotes
  • Credits
  • Changelog
  • GitHub
  • X
  • LinkedIn
  • Mastodon (Hachyderm)
  • Mastodon (BSD Cafe)

Search

Subscribe via Feed

RSS | JSON

Categories

  • Asides (111)
  • Azure, Azure AD, Graph, M365 (214)
  • Books, Audiobooks, Podcasts (53)
  • Citrix (62)
  • Coding (33)
  • Docker (22)
  • Exchange, Exchange Online (49)
  • Gadgets (69)
  • Infrastructure (102)
  • Linux & BSD (67)
  • Mac (58)
  • Musings (52)
  • Networks (45)
  • Power Platform (39)
  • PowerShell (117)
  • TV, Movies, Music (78)
  • Virtualization (108)
  • Windows (271)
  • WordPress (11)

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