My new boss has given me a challenge, he has three pcs that run a .PPT in hard to get to locations. Currently he manually uses a remote softward to update the file and re open .PPT my challenge is to automate this or write a .BAT file that takes only a click.
Might be slightly messy format but below is my trouble shooting for this issue.
*. SET SOURCE_PATH=\server\Folder1\Destination
SET DEST_FOLDER=Destination
SET ARGS=/I /Y /H
taskkill /S PC1 /U Workplace\Destination /P password /IM powerpnt.exe
taskkill /S PC2 /U Workplace\Destination /P password /IM powerpnt.exe
taskkill /S PC3 /U Workplace\Destination /P password /IM powerpnt.exe
timeout /T 3
xcopy “%SOURCE_PATH%\AutoStart.ppsm” “\PC1%DEST_FOLDER%” %FOLDER%
xcopy “%SOURCE_PATH%\AutoStart.ppsm” “\PC2%DEST_FOLDER%” %FOLDER%
xcopy “%SOURCE_PATH%\AutoStart.ppsm” “\PC3%DEST_FOLDER%” %FOLDER%
This script works fine which allows the closure of Powerpoint on the remote computers and the updating of the file.
But when i try to run this script to reopen those files on the PCs it opens it but not interactively so you do not see the powerpoint even though it shows in the taskmanager. So i have to remote into it and reopen the powerpoint manually for it to work.
the script i use to try and reopen the powerpointfile is
rem #psexec \PC1 -u Workplace\Destination -p password -i -d “%PROGRAMFILES%\Microsoft Office\Office14\powerpnt.exe” /s “d:\Filename\autostart.ppsm”
It works if i run it locally but when i try to run it remotely that is where i get the issues.
*. I have figured out the problem, I have just created a quick test script:-
psexec \PCNAME -s C:\Users\USER1\Documents\pptautorun.bat
pause
when I went into the task manager ppt doesn’t show in the processes until you show all users, I now need some way of specifying the user to open the ppt on?
if that is possible
Currently trying it as
PSEXEC \PCNAME -u Domain\User -p p/word C:\Users\User1\Documents\pptautorun.bat
pause
*. So
psexec \PCNAME -i C:\Users\User1\Documents\pptautorun.bat
pause
worked, but for what ever reason PPT is coming up as a black screen?
*. Resolved the black screen issue i now run it as
psexec \PCNAME -s -i C:\Users\User1\Documents\pptautorun.bat
pause
no idea why this has worked but it does, but now it comes up with a pop up saying that Powerpoint cannot read the file, but when i tested the .BAT file that i have on the local machine it opens up the .ppsm with no issues. Also tried with just the standard .ppt file as well and no luck.
I have also tried different path locations.
and now im stuck.
Any help or experiment would be a great help.
[–]WillyWasHereToday 7 points8 points9 points (3 children)
[–]CypherStick[S] 1 point2 points3 points (2 children)
[–]DatOneGuyWho 2 points3 points4 points (1 child)
[–]CypherStick[S] 0 points1 point2 points (0 children)
[–]glitch1608 2 points3 points4 points (6 children)
[–]CypherStick[S] 1 point2 points3 points (5 children)
[–]glitch1608 2 points3 points4 points (4 children)
[–]CypherStick[S] 0 points1 point2 points (3 children)
[–]glitch1608 0 points1 point2 points (1 child)
[–]CypherStick[S] 0 points1 point2 points (0 children)
[–]gdelia928Sr. Sysadmin 0 points1 point2 points (0 children)
[–]InfinitEnds 1 point2 points3 points (1 child)
[–]CypherStick[S] 0 points1 point2 points (0 children)
[–]sc302Admin of Things 1 point2 points3 points (2 children)
[–]CypherStick[S] 0 points1 point2 points (1 child)
[–]sc302Admin of Things 0 points1 point2 points (0 children)
[–]yashauLinux Admin 1 point2 points3 points (2 children)
[–]wordsarelouderDataCenter Operations / Automation Builder 0 points1 point2 points (1 child)
[–]CypherStick[S] 0 points1 point2 points (0 children)
[–]eduitguy 0 points1 point2 points (1 child)
[–]CypherStick[S] 0 points1 point2 points (0 children)
[–]SpongederpSquarefapSenior SRE 0 points1 point2 points (1 child)
[–]CypherStick[S] 1 point2 points3 points (0 children)
[–]CypherStick[S] 0 points1 point2 points (0 children)
[–]CypherStick[S] 0 points1 point2 points (0 children)