forked from fleschutz/PowerShell
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcheck-health.ps1
More file actions
executable file
·30 lines (29 loc) · 872 Bytes
/
Copy pathcheck-health.ps1
File metadata and controls
executable file
·30 lines (29 loc) · 872 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<#
.SYNOPSIS
Checks the computer health
.DESCRIPTION
This PowerShell script checks the health of the local computer.
.EXAMPLE
PS> ./check-health
✔️ 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
✔️ DNS resolution is 19.7 domains per second
✔️ 29 ms ping average (13 ms min, 110 ms max, 10 hosts)
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#>
& "$PSScriptRoot/check-uptime.ps1"
& "$PSScriptRoot/check-operating-system.ps1"
& "$PSScriptRoot/check-swap-space.ps1"
& "$PSScriptRoot/check-drives.ps1"
& "$PSScriptRoot/check-cpu.ps1"
& "$PSScriptRoot/check-dns.ps1"
& "$PSScriptRoot/check-ping.ps1"
& "$PSScriptRoot/check-vpn.ps1"
if ($IsLinux) {
& "$PSScriptRoot/check-smart-devices.ps1"
}
exit 0 # success