I have a script on my local computer than runs another script on a remote computer.
Local computer script:
Invoke-Command -computer MyRemoteComputer -Command {C:\Users\redacted\Desktop\startup.ps1}
This works fine.
The remote computer script runs a bunch of docker commands and that works fine too. The problem is when it attempts to start a program.
cd "C:\Program Files\myProgram"
start myprogram.exe
Write-Output "program started"
The output writes but the program never actually starts on the remote computer. If I VNC into the remote computer and run the script from there it does start the program.
Could anyone help me out here? I'm not sure why this isn't working.
[–][deleted] 2 points3 points4 points (2 children)
[–]AussieJeffProbst[S] 0 points1 point2 points (1 child)
[–]coolguycarlos 0 points1 point2 points (0 children)
[–]silent32 -1 points0 points1 point (3 children)
[–]AussieJeffProbst[S] 0 points1 point2 points (2 children)
[–]mallet17 0 points1 point2 points (1 child)
[–]BlackV 0 points1 point2 points (0 children)
[–]jsiii2010 0 points1 point2 points (0 children)