diff --git a/disk_check.ps1 b/disk_check.ps1 index 6497200..b904b93 100644 --- a/disk_check.ps1 +++ b/disk_check.ps1 @@ -24,7 +24,7 @@ Function Write-Log{ Write-Output "Checking disks for $($computerName)" -foreach ($i in $volumes.DriveLetter) { +foreach ($i in $volumes) { if ($i.DriveLetter -eq "") { Write-Output "" } else {