remove alias in favor of calling exe

This commit is contained in:
2023-10-05 13:35:12 -04:00
parent 983952ee99
commit 72445c1701
+2 -2
View File
@@ -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
}