Skip to content

Commit da920a6

Browse files
authored
Merge pull request #33832 from sharwell/revert-exec-command
Revert "Merge pull request #33800 from sharwell/script-cleanup"
2 parents 2cab0d7 + 76fd803 commit da920a6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

eng/build.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -534,22 +534,22 @@ try {
534534
if ($quserItems[1] -eq 'console') {
535535
Write-Host "Disconnecting from console before attempting reconnection"
536536
try {
537-
Exec-Command tsdiscon
537+
tsdiscon
538538
} catch {
539539
# ignore
540540
}
541541

542542
# Disconnection is asynchronous, so wait a few seconds for it to complete
543543
Start-Sleep -Seconds 3
544-
Exec-Command query user
544+
query user
545545
}
546546

547547
Write-Host "tscon $sessionid /dest:console"
548-
Exec-Command tscon $sessionid /dest:console
548+
tscon $sessionid /dest:console
549549

550550
# Connection is asynchronous, so wait a few seconds for it to complete
551551
Start-Sleep 3
552-
Exec-Command query user
552+
query user
553553

554554
# Make sure we can capture a screenshot. An exception at this point will fail-fast the build.
555555
Capture-Screenshot $screenshotPath

0 commit comments

Comments
 (0)