File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -534,22 +534,22 @@ try {
534
534
if ($quserItems [1 ] -eq ' console' ) {
535
535
Write-Host " Disconnecting from console before attempting reconnection"
536
536
try {
537
- Exec - Command tsdiscon
537
+ tsdiscon
538
538
} catch {
539
539
# ignore
540
540
}
541
541
542
542
# Disconnection is asynchronous, so wait a few seconds for it to complete
543
543
Start-Sleep - Seconds 3
544
- Exec - Command query user
544
+ query user
545
545
}
546
546
547
547
Write-Host " tscon $sessionid /dest:console"
548
- Exec - Command tscon $sessionid / dest:console
548
+ tscon $sessionid / dest:console
549
549
550
550
# Connection is asynchronous, so wait a few seconds for it to complete
551
551
Start-Sleep 3
552
- Exec - Command query user
552
+ query user
553
553
554
554
# Make sure we can capture a screenshot. An exception at this point will fail-fast the build.
555
555
Capture- Screenshot $screenshotPath
You can’t perform that action at this time.
0 commit comments