Server downtime report using powershell.
I've report to query the uptime of server but is there any way to get downtime.
Suppose in a week the server was down for let's say 5mins on day one 15 mins on day three etc.
Total downtime here is 20mins.. sum of all downtime in a week and return the output.
Using PowerShell can this be achieved.. Thanks in advance