oops
This commit is contained in:
parent
776bea8402
commit
e56e2f942b
@ -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!"
|
||||
|
Loading…
Reference in New Issue
Block a user