mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-09 13:04:59 +02:00
Update check-drives.ps1
This commit is contained in:
@ -7,7 +7,7 @@
|
|||||||
Specifies the minimum level in Gigabyte
|
Specifies the minimum level in Gigabyte
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./check-drives
|
PS> ./check-drives
|
||||||
✔️ Drive C has 172G left (233G total)
|
✔️ Drive C has 172GB left (233GB total)
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/fleschutz/PowerShell
|
https://github.com/fleschutz/PowerShell
|
||||||
.NOTES
|
.NOTES
|
||||||
@ -27,7 +27,7 @@ try {
|
|||||||
if ($Free -lt $MinLevel) {
|
if ($Free -lt $MinLevel) {
|
||||||
$Reply = "Drive $($Drive.Name) has only $Free GB left to use! ($Used of $Total GB used, minimum is $MinLevel GB)"
|
$Reply = "Drive $($Drive.Name) has only $Free GB left to use! ($Used of $Total GB used, minimum is $MinLevel GB)"
|
||||||
} else {
|
} else {
|
||||||
$Reply = "Drive $($Drive.Name) has $($Free)G left ($($Total)G total)"
|
$Reply = "Drive $($Drive.Name) has $($Free)GB left ($($Total)GB total)"
|
||||||
}
|
}
|
||||||
"✔️ $Reply"
|
"✔️ $Reply"
|
||||||
& "$PSScriptRoot/speak-english.ps1" "$Reply"
|
& "$PSScriptRoot/speak-english.ps1" "$Reply"
|
||||||
|
Reference in New Issue
Block a user