Skip to content

Commit

Permalink
use PSExec
Browse files Browse the repository at this point in the history
Signed-off-by: midays <[email protected]>
  • Loading branch information
midays committed Dec 10, 2024
1 parent 4313b6b commit f28359e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/windows-nightly-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,11 @@ jobs:
$logPathErr = "C:\Users\nonadmin\Documents\actions-runner\work\run-tests-error.log"
# Debug: Print the command
echo "Executing PsExec: & '$psExecPath' -accepteula -nobanner -u nonadmin -p 'pass123!' powershell.exe -Command \"& { & '$scriptPath' }\""
echo "Executing PsExec: & '$psExecPath' -accepteula -nobanner -u nonadmin -p 'pass123!' powershell.exe -Command \"`& { `& '$scriptPath' }\""
# Properly quote the PsExec command
& $psExecPath -accepteula -nobanner -u nonadmin -p "pass123!" powershell.exe -Command "& { & '$scriptPath' }"
& $psExecPath -accepteula -nobanner -u nonadmin -p "pass123!" powershell.exe -Command "`& { `& '$scriptPath' }"
# Debug: Check if log files exist
if (-Not (Test-Path -Path $logPathOut)) {
Write-Output "Log file does not exist: $logPathOut"
Expand Down

0 comments on commit f28359e

Please sign in to comment.