mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-18 16:39:03 +02:00
Updated the manuals
This commit is contained in:
@@ -26,8 +26,8 @@ Example
|
||||
-------
|
||||
```powershell
|
||||
PS> ./check-drives.ps1
|
||||
✅ Drive C: has 512GB free (49% of 1TB used)
|
||||
✅ Drive D: has 641GB free (84% of 4TB used)
|
||||
✅ Drive C: uses 49% of 1TB - 512GB free
|
||||
✅ Drive D: uses 84% of 4TB - 641GB free
|
||||
|
||||
```
|
||||
|
||||
@@ -51,8 +51,8 @@ Script Content
|
||||
Specifies the minimum warning level (10GB by default)
|
||||
.EXAMPLE
|
||||
PS> ./check-drives.ps1
|
||||
✅ Drive C: has 512GB free (49% of 1TB used)
|
||||
✅ Drive D: has 641GB free (84% of 4TB used)
|
||||
✅ Drive C: uses 49% of 1TB - 512GB free
|
||||
✅ Drive D: uses 84% of 4TB - 641GB free
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
@@ -90,7 +90,7 @@ try {
|
||||
Write-Host "⚠️ Drive $name with $(Bytes2String $total) is nearly full, $(Bytes2String $free) free"
|
||||
} else {
|
||||
[int64]$percent = ($used * 100) / $total
|
||||
Write-Host "✅ Drive $name has $(Bytes2String $free) free ($percent% of $(Bytes2String $total) used)"
|
||||
Write-Host "✅ Drive $name uses $percent% of $(Bytes2String $total) - $(Bytes2String $free) free"
|
||||
}
|
||||
}
|
||||
exit 0 # success
|
||||
@@ -100,4 +100,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of check-drives.ps1 as of 05/19/2024 10:25:17)*
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of check-drives.ps1 as of 08/15/2024 09:50:45)*
|
||||
|
Reference in New Issue
Block a user