trying to eliminate errors

This commit is contained in:
Wyatt J. Miller 2021-06-18 21:00:50 -04:00
parent d33d58b569
commit 217bec9d9f

View File

@ -25,7 +25,7 @@ Function Write-Log{
Write-Output "Checking disks for $($computerName)" Write-Output "Checking disks for $($computerName)"
foreach ($i in $volumes) { foreach ($i in $volumes) {
if ($i.DriveLetter -eq "") { if ($i.FileSystemLabel -eq "") {
Write-Output "" Write-Output ""
} else { } else {
$result=Repair-Volume -DriveLetter $i.DriveLetter -Scan $result=Repair-Volume -DriveLetter $i.DriveLetter -Scan