diff --git a/disk_check.ps1 b/disk_check.ps1 index b904b93..0751f9b 100644 --- a/disk_check.ps1 +++ b/disk_check.ps1 @@ -25,7 +25,7 @@ Function Write-Log{ Write-Output "Checking disks for $($computerName)" foreach ($i in $volumes) { - if ($i.DriveLetter -eq "") { + if ($i.FileSystemLabel -eq "") { Write-Output "" } else { $result=Repair-Volume -DriveLetter $i.DriveLetter -Scan