Skip to content

Commit 17668dc

Browse files
committed
Update check-drives.ps1
1 parent 16a6869 commit 17668dc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Scripts/check-drives.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
Specifies the minimum warning level (10 GB by default)
88
.EXAMPLE
99
PS> ./check-drives
10-
✅ Drive C: uses 87GB of 249GB
10+
✅ Drive C: with 250GB is 10% full, 225GB free
1111
.LINK
1212
https://github.com/fleschutz/PowerShell
1313
.NOTES
@@ -48,10 +48,10 @@ try {
4848
} elseif ($Free -eq 0) {
4949
Write-Host "⚠️ Drive $ID with $(Bytes2String $Total) is 100% full"
5050
} elseif ($Free -lt $MinLevel) {
51-
Write-Host "⚠️ Drive $ID with $(Bytes2String $Total) is nearly full ($(Bytes2String $Free) free)"
51+
Write-Host "⚠️ Drive $ID with $(Bytes2String $Total) is nearly full, $(Bytes2String $Free) free"
5252
} else {
5353
[int]$Percent = ($Used * 100) / $Total
54-
Write-Host "✅ Drive $ID $Percent% full, $(Bytes2String $Free) of $(Bytes2String $Total) free"
54+
Write-Host "✅ Drive $ID with $(Bytes2String $Total) is $Percent% full, $(Bytes2String $Free) free"
5555
}
5656
}
5757
exit 0 # success

0 commit comments

Comments
 (0)