fixes
This commit is contained in:
parent
69f27a6708
commit
0080ca2859
@ -23,6 +23,9 @@ Function Write-Log{
|
|||||||
}
|
}
|
||||||
|
|
||||||
foreach ($i in $volumes) {
|
foreach ($i in $volumes) {
|
||||||
|
if ($i.FileSystemLabel -eq "") {
|
||||||
|
Write-Output ""
|
||||||
|
} else {
|
||||||
$result=Repair-Volume -FileSystemLabel $i.FileSystemLabel -Scan
|
$result=Repair-Volume -FileSystemLabel $i.FileSystemLabel -Scan
|
||||||
|
|
||||||
if ($result.value -gt 0) {
|
if ($result.value -gt 0) {
|
||||||
@ -33,6 +36,7 @@ foreach ($i in $volumes) {
|
|||||||
Write-Log $now + ',' + $i.FileSystemLabel + ',' + $result + ',' + $targetComputer
|
Write-Log $now + ',' + $i.FileSystemLabel + ',' + $result + ',' + $targetComputer
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if ($requireReboot -eq $true) {
|
if ($requireReboot -eq $true) {
|
||||||
# TODO: Reboot logic goes here
|
# TODO: Reboot logic goes here
|
||||||
|
Loading…
Reference in New Issue
Block a user