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!"