From e56e2f942bec07ee6b1bce4e7b8b5e746e53d9f4 Mon Sep 17 00:00:00 2001 From: "Wyatt J. Miller" Date: Fri, 18 Jun 2021 20:57:06 -0400 Subject: [PATCH] oops --- disk_check.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/disk_check.ps1 b/disk_check.ps1 index 46e69e3..6497200 100644 --- a/disk_check.ps1 +++ b/disk_check.ps1 @@ -28,10 +28,10 @@ foreach ($i in $volumes.DriveLetter) { if ($i.DriveLetter -eq "") { Write-Output "" } else { - $result=Repair-Volume -FileSystemLabel $i.DriveLetter -Scan + $result=Repair-Volume -DriveLetter $i.DriveLetter -Scan if ($result.value -gt 0) { - Repair-Volume -FileSystemLabel $i.DriveLetter -Scan -OfflineScanAndFix + Repair-Volume -DriveLetter $i.DriveLetter -Scan -OfflineScanAndFix $requireReboot = $true } else { Write-Output "$($i.FileSystemLabel): Drive is OK!"