cleaning up

Signed-off-by: Wyatt J. Miller <wyatt@wyattjmiller.com>
This commit is contained in:
Wyatt J. Miller 2022-06-12 19:08:21 -05:00
parent 10a445e0ff
commit 0f2d89fb92

View File

@ -1,5 +1,6 @@
# DiskCheck PS script
# Checking a target computer for hard drive failures
# Only works for Windows 7+ right now, plan to working for different operating systems
#
# Written by Wyatt J. Miller
# Licensed by Mozilla Public License v2
@ -90,5 +91,5 @@ if ($requireReboot -eq $true) {
$result = Repair-Volume CimSession $cimSession -FileSystemLabel $volume.FileSystemLabel -Scan
#Report Un-Repairable Disks
Write-Log $now +','+ $result + ',' + $targetComputer, +',' + 'Unable to repair'
Write-Log "$($now) $($result) $($targetComputer): Unable to repair"
}