fixes
This commit is contained in:
parent
0080ca2859
commit
4823cf940f
@ -24,7 +24,7 @@ Function Write-Log{
|
|||||||
|
|
||||||
foreach ($i in $volumes) {
|
foreach ($i in $volumes) {
|
||||||
if ($i.FileSystemLabel -eq "") {
|
if ($i.FileSystemLabel -eq "") {
|
||||||
Write-Output ""
|
Write-Output
|
||||||
} else {
|
} else {
|
||||||
$result=Repair-Volume -FileSystemLabel $i.FileSystemLabel -Scan
|
$result=Repair-Volume -FileSystemLabel $i.FileSystemLabel -Scan
|
||||||
|
|
||||||
@ -32,8 +32,8 @@ foreach ($i in $volumes) {
|
|||||||
Repair-Volume -FileSystemLabel $i.FileSystemLabel -Scan -OfflineScanAndFix
|
Repair-Volume -FileSystemLabel $i.FileSystemLabel -Scan -OfflineScanAndFix
|
||||||
$requireReboot = $true
|
$requireReboot = $true
|
||||||
} else {
|
} else {
|
||||||
Write-Output $i.FileSystemLabel + ": Drive is OK!"
|
Write-Output "$($i.FileSystemLabel): Drive is OK!"
|
||||||
Write-Log $now + ',' + $i.FileSystemLabel + ',' + $result + ',' + $targetComputer
|
Write-Log "$($now), $($i.FileSystemLabel), $($result), $($computerName)"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user