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 {
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
You can’t perform that action at this time.
0 commit comments