Get last reboot time for multiple computers/servers

Welcome Forums General PowerShell Q&A Get last reboot time for multiple computers/servers

This topic contains 3 replies, has 2 voices, and was last updated by

 
Moderator
3 years, 4 months ago.

  • Author
    Posts
  • #29417

    Participant
    Points: 0
    Rank: Member

    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

    Moderator
    Points: 24
    Team Member
    Rank: Member

    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
    PowerShell : Uptime of Multiple Servers

    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

    Participant
    Points: 0
    Rank: Member

    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

    Moderator
    Points: 24
    Team Member
    Rank: Member

    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.

The topic ‘Get last reboot time for multiple computers/servers’ is closed to new replies.