From 217bec9d9f7fefdf967e768a41c61fb3747377fc Mon Sep 17 00:00:00 2001 From: "Wyatt J. Miller" Date: Fri, 18 Jun 2021 21:00:50 -0400 Subject: [PATCH] trying to eliminate errors --- disk_check.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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