File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 7
7
Specifies the minimum warning level (10 GB by default)
8
8
. EXAMPLE
9
9
PS> ./check-drives
10
- ✅ Drive C: uses 87GB of 249GB
10
+ ✅ Drive C: with 250GB is 10% full, 225GB free
11
11
. LINK
12
12
https://github.com/fleschutz/PowerShell
13
13
. NOTES
@@ -48,10 +48,10 @@ try {
48
48
} elseif ($Free -eq 0 ) {
49
49
Write-Host " ⚠️ Drive $ID with $ ( Bytes2String $Total ) is 100% full"
50
50
} 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"
52
52
} else {
53
53
[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"
55
55
}
56
56
}
57
57
exit 0 # success
You can’t perform that action at this time.
0 commit comments