Additional Script Updates

This commit is contained in:
Andrew Amason
2025-05-19 15:19:36 -04:00
parent ec2b22290a
commit 9c8438d7d1
136 changed files with 1595 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
# Detection Script: Detect_LowDiskSpace.ps1
# Define the threshold for low disk space in GB
$thresholdGB = 10
# Get the free space on the system drive
$freeSpaceGB = [math]::Round((Get-PSDrive -Name C).Free / 1GB, 2)
if ($freeSpaceGB -lt $thresholdGB) {
Write-Output "Low disk space detected: $freeSpaceGB GB free"
exit 1
} else {
Write-Output "Sufficient disk space: $freeSpaceGB GB free"
exit 0
}