From 0f2d89fb92876ff1ecde8b9b45097892b02b5464 Mon Sep 17 00:00:00 2001 From: "Wyatt J. Miller" Date: Sun, 12 Jun 2022 19:08:21 -0500 Subject: [PATCH] cleaning up Signed-off-by: Wyatt J. Miller --- disk_check.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/disk_check.ps1 b/disk_check.ps1 index f2faeef..1914ef2 100644 --- a/disk_check.ps1 +++ b/disk_check.ps1 @@ -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" }