remove alias in favor of calling exe
This commit is contained in:
@@ -35,6 +35,6 @@ Else { Write-Output "Online image cleanup and restoration is only supported on W
|
|||||||
|
|
||||||
# Schedule Check Disk if needed
|
# Schedule Check Disk if needed
|
||||||
If ( $ScheduleCheckDisk ) {
|
If ( $ScheduleCheckDisk ) {
|
||||||
Write-Output "Check Disk scheduled to repair disk at next boot"
|
Write-Output "Scheduling disk repair at next boot"
|
||||||
& echo y | chkdsk /F /R /X
|
Start-Process "cmd.exe" -ArgumentList '/C echo y | chkdsk /F /R /X' -Wait
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user