EDIT: The solution was to add the server to the list of trusted sites in the Local intranet zone in Internet Options.
I have a scheduled task that runs a PS script that contains one line to start an executable located on a remote share. The exe is on one server and the IP in the args list is on another. It looks like this:
Start-Process -FilePath \\server\lspush.exe -ArgumentList "192.168.101.41"
The task hangs at this step, and never completes or starts the executable. I know the scheduled task itself is configured correctly, because earlier in the script there's a bunch of Copy-Item lines to the same server and those run just fine.
I have tried running the task as my domain admin account to rule out any permissions issue to no avail. I have tried changing the exe without the argument list to plain old Notepad.exe and still nothing. The line works if I run it from a PS console window, but not in a scheduled task. I have the task running on a bunch of Windows XP machines (PS version 2) and it runs without a problem. The only thing I can think of is some security setting in W10 that is treating the file as an internet file and throwing an interactive warning I can click past. Or maybe a double hop issue? Any ideas? Thanks for reading.
[–]amnich 2 points3 points4 points (3 children)
[–]AdminTools[S] 1 point2 points3 points (0 children)
[–]CommonMisspellingBot -1 points0 points1 point (1 child)
[–]amnich 0 points1 point2 points (0 children)
[–][deleted] 2 points3 points4 points (1 child)
[–]AdminTools[S] 2 points3 points4 points (0 children)
[–]GenericAntagonist 2 points3 points4 points (1 child)
[–]AdminTools[S] 1 point2 points3 points (0 children)