Forum Discussion

M. Sheeraz Ansari.'s avatar
Oct 10, 2022

Windows Server Event IDs for finding boot time and relevant information

Hi,

 

For a customer on-premises Windows based environment with mix of Servers 2012, 2016 and 2019, there is a need to generate a report of servers through a PowerShell script with following information

 

SerialNumber

System

SystemAvailability

TotalUptime

TotalDowntime

TotalReboots

MeanTimeBetweenReboots

1

SRV10

99.98%

20d 12h:46m:30s

0d 0h:5m:3s

4

5.13 days

2

SRV11

100.00%

30d 11h:32m:22s

0d 0h:1m:41s

4

7.62 days

 

Above data is what we are trying to compile based on each Server's "Windows Event Viewer". 

 

Question: What are the events those can help us to compile a customized script to produce above output? Some of the events that I am aware of 6005, 6006. Are there any other events those can help?

 

Any other ideas those can help us. Please note, customer needs this report generated through a script NOT through any tool such as SCCM or SCOM or any third party..... 🙂

 

Thank you!

 

 

3 Replies