Skip to content

Commit a68c0a5

Browse files
committed
Fix system restore actions not being printed
1 parent 31b13bf commit a68c0a5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Win11Debloat.ps1

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -800,6 +800,8 @@ function CreateSystemRestorePoint {
800800
Write-Output "Press any key to continue anyway..."
801801
$null = [System.Console]::ReadKey()
802802
return
803+
} else {
804+
Receive-Job $enableSystemRestoreJob
803805
}
804806
} else {
805807
Write-Output ""
@@ -836,6 +838,8 @@ function CreateSystemRestorePoint {
836838
Write-Output ""
837839
Write-Output "Press any key to continue anyway..."
838840
$null = [System.Console]::ReadKey()
841+
} else {
842+
Receive-Job $createRestorePointJob
839843
}
840844

841845
Write-Output ""

0 commit comments

Comments
 (0)