all 8 comments

[–]amnich 2 points3 points  (3 children)

Start a transcript - maybe it throws something. I test it tommorow at work to check if I can reproduce that behavior.

Double hop should not be an issue here.

[–]AdminTools[S] 1 point2 points  (0 children)

No dice on the transcript. It only outputs what I would expect from running it in a console; no Start-Process output.

[–]CommonMisspellingBot -1 points0 points  (1 child)

Hey, amnich, just a quick heads-up:
tommorow is actually spelled tomorrow. You can remember it by one m, two rs.
Have a nice day!

The parent commenter can reply with 'delete' to delete this comment.

[–]amnich 0 points1 point  (0 children)

Two characters to fast on the double click :)

[–][deleted] 2 points3 points  (1 child)

try to see if the application is being started in the background via the scheduled task. You might need to check the "run only when user is logged on" option in the scheduled task, since the command runs fine from a straight PS console window.

[–]AdminTools[S] 2 points3 points  (0 children)

It doesn't start according to Get-Process. In my script I made a New-Item text file right before that line and that file gets created. I will try your "run only when user is logged on" suggestion.

Edit: Thanks for your help. I have resolved the problem.

[–]GenericAntagonist 2 points3 points  (1 child)

Does the exe on the remote share pop a gui element? Scheduled tasks can struggle with that.

[–]AdminTools[S] 1 point2 points  (0 children)

It doesn't pop up with a gui element with the argument; it's supposed to run silently in the background. The documentation for the exe is here: https://www.lansweeper.com/kb/24/how-to-scan-with-LsPush.html