If you have a collection already built up with all the servers in it, you
can use my right click tools to get that information. It's the System
Information one. It gives last restart time, current console user, domain
(for the console user), model, OS, and IP Address.
they are at psrightclicktools.codeplex.com
Otherwise, you can use this script to do the same thing:
$strQuery = "Select LastBootUpTime from Win32_OperatingSystem"
Get-WmiObject -Query $strQuery -Namespace root\cimv2 -ComputerName
$CompName | ForEach-Object {
$BootTime =
[Management.ManagementDateTimeConverter]::ToDateTime($_.LastBootUpTime)
}
$BootTime
You'll need to feed it the list of servers as $CompName, or change
$CompName to whatever variable you want.
On Thu, Sep 12, 2013 at 9:55 AM, Marcum, John <[email protected]> wrote:
> What's the easiest way to get the last reboot time for a list of servers?
>
>
> *
> ------------------------------
> *
>
> *John Marcum*
> *Sr. Desktop Architect*
>
> *Bradley Arant Boult Cummings LLP*
> ------------------------------
>
>
>
> ------------------------------
>
> Confidentiality Notice: This e-mail is from a law firm and may be
> protected by the attorney-client or work product privileges. If you have
> received this message in error, please notify the sender by replying to
> this e-mail and then delete it from your computer.
>
>