diff --git a/Fix-WindowsHealth.ps1 b/Fix-WindowsHealth.ps1 index 9d05cd9..66d0358 100644 --- a/Fix-WindowsHealth.ps1 +++ b/Fix-WindowsHealth.ps1 @@ -35,6 +35,6 @@ Else { Write-Output "Online image cleanup and restoration is only supported on W # Schedule Check Disk if needed If ( $ScheduleCheckDisk ) { - Write-Output "Check Disk scheduled to repair disk at next boot" - & echo y | chkdsk /F /R /X + Write-Output "Scheduling disk repair at next boot" + Start-Process "cmd.exe" -ArgumentList '/C echo y | chkdsk /F /R /X' -Wait } \ No newline at end of file