Windows Servers Uptime Report using PowerShell

Brass Contributor

Hi Folks,

 

A customer has mix of Windows servers (2012, 2016, 2019) on-premises environment. Customer needs to generate a report via PowerShell about the availability of servers. During my search I found a script on this link

 

and its modified version is attached.

 

Please note, this script reads windows events and based on that produces result. There is a problem where I need help, this script doesn't run against list of servers via a CSV file or a text file and we suspect it is not producing correct result.

 

Can somebody please review this script and help us with the right syntax or what is missing here?

 

Thanks in advance.

0 Replies