PowerShell/Scripts/check-health.ps1

31 lines
872 B
PowerShell
Raw Normal View History

2021-09-27 10:38:12 +02:00
<#
2021-07-13 21:10:02 +02:00
.SYNOPSIS
Checks the computer health
2021-10-04 21:29:23 +02:00
.DESCRIPTION
2022-01-29 12:47:46 +01:00
This PowerShell script checks the health of the local computer.
2021-07-13 21:10:02 +02:00
.EXAMPLE
2021-09-24 17:19:49 +02:00
PS> ./check-health
2021-10-04 17:42:06 +02:00
1213 GB left for swap space (67 of 1280 GB used)
172 GB left on drive C (61 of 233 GB used)
30.3 °C CPU temperature - good
2021-12-01 10:23:15 +01:00
DNS resolution is 19.7 domains per second
2021-10-04 17:42:06 +02:00
29 ms ping average (13 ms min, 110 ms max, 10 hosts)
2021-07-13 21:10:02 +02:00
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
2022-09-06 21:42:04 +02:00
Author: Markus Fleschutz | License: CC0
2021-03-20 15:51:03 +01:00
#>
& "$PSScriptRoot/check-uptime.ps1"
& "$PSScriptRoot/check-operating-system.ps1"
2021-04-07 14:45:10 +02:00
& "$PSScriptRoot/check-swap-space.ps1"
2021-12-03 10:13:59 +01:00
& "$PSScriptRoot/check-drives.ps1"
2021-12-01 10:23:15 +01:00
& "$PSScriptRoot/check-cpu.ps1"
2021-12-01 09:57:36 +01:00
& "$PSScriptRoot/check-dns.ps1"
2021-04-07 14:45:10 +02:00
& "$PSScriptRoot/check-ping.ps1"
2021-12-02 14:52:25 +01:00
& "$PSScriptRoot/check-vpn.ps1"
2021-10-03 21:43:29 +02:00
if ($IsLinux) {
& "$PSScriptRoot/check-smart-devices.ps1"
}
2021-12-01 10:23:15 +01:00
exit 0 # success