Get last reboot time for multiple computers/servers

This topic contains 3 replies, has 2 voices, and was last updated by Profile photo of Daniel Krebs Daniel Krebs 1 year, 4 months ago.

  • Author
    Posts
  • #29417
    Profile photo of Mel VW
    Mel VW
    Participant

    Hi,
    I saw this on the net how to get the last reboot time for one machine.
    http://www.computerperformance.co.uk/powershell/powershell3-check-uptime.htm

    But how do I do this if I have a list of computers on an xml file and I want each last reboot time for each of them?

  • #29419
    Profile photo of Daniel Krebs
    Daniel Krebs
    Participant

    Please post an excerpt of the XML as Gist but renamed your internal machine names to something generic like (machine001, machine002).

    Have you searched for "wmi lastbootuptime powershell multiple" on the web?

    http://ss64.com/ps/syntax-get-uptime.html
    http://www.powershelladmin.com/wiki/Find_last_boot_up_time_of_remote_Windows_computers_using_WMI

    Most of the examples you will find are using a simple text / CSV file as input but you can make it work with an XML as well. PowerShell has great support to read XMLs.

  • #29420
    Profile photo of Mel VW
    Mel VW
    Participant

    Much appreciated thanks

    I am trying to come up with ideas. example what do you think organisations want other than reboot time? or disk space? I want to add info on servers...anything that might be useful to the system administrator.

  • #29421
    Profile photo of Daniel Krebs
    Daniel Krebs
    Participant

    I think make and model of the machine, serial number, CPU counts (sockets and logical processors) and model, RAM, disk space (especially tracking growth), IP information, OS version plus service pack, domain/workgroup membership, OS install date, local admin group membership and many more are useful for system administrators.

You must be logged in to reply to this topic.