PsExec "The system cannot find the file specified"

indyitguy

Honorable
Feb 7, 2013
190
0
10,710
I'm tasked with running a powerpoint slideshow on a standalone system that will be updated daily. I want to build a bat file for the user that will be updating the slideshow that will stop the slideshow, copy the new one to the standalone system, then start the slideshow back up. I can stop the slideshow remotely and copy the file no problem. My issue is when I try to issue this command: "psexec -u localuseraccount -p password \\FQDN -h -i c:\Slideshow\slideshow.pptx" I get a "The system cannot find the file specified" error.

I've created the same directory on my machine and the target machine to store the powerpoint file. On the target machine I created a local administrator account that is logged in. I verified that the administrators group has full control of the directory storing the powerpoint file.

Anybody have an idea on what is causing the issue?
 
Solution
Figured it out... Here is what I did in case anyone comes across this thread and had the same issue.

target machine: system1
local admin: admin
local admin pswd: password
powerpoint location on both my system and target machine: c:\slideshow\slideshow.pptx
I have the batch file containing the following command as well as the psexec.exe files in the same directory as the slideshow.pptx file.

psexec \\system1 -u system1\admin -p password -h -i -d "path\to\powerpnt.exe" /s "C:\slideshow\slideshow.pptx"

indyitguy

Honorable
Feb 7, 2013
190
0
10,710
I noticed that on the target machine when I issue the psexec \\targetmachine "path\to\powerpnt.exe" "path\to\pptxfile" the powerpnt.exe process starts but doesn't actually start... weird...
 

indyitguy

Honorable
Feb 7, 2013
190
0
10,710
Figured it out... Here is what I did in case anyone comes across this thread and had the same issue.

target machine: system1
local admin: admin
local admin pswd: password
powerpoint location on both my system and target machine: c:\slideshow\slideshow.pptx
I have the batch file containing the following command as well as the psexec.exe files in the same directory as the slideshow.pptx file.

psexec \\system1 -u system1\admin -p password -h -i -d "path\to\powerpnt.exe" /s "C:\slideshow\slideshow.pptx"
 
Solution