Jump to content

Recommended Posts

Posted (edited)

PSexec will not run a bat file that is set to silently install programs.

 

Here is what im ruining for psexec to launch the bat file on the computers. The computers are not logged in they are at the CTRL alt del screen and awake. when ran it shows connecting them that goes away and it just sits there. What am i doing wrong guys and gals?

 

for /f %%a in (%~d0\SoftwareDeployment\Lists\Computers.txt) do psexec \\%%a  C:\SD\scripts\install.bat
Pause

 

This is the bat file that is on the local machine along with its installers.

[font=verdana]
[font=Verdana]@Echo OFF[/font][/font]
start /w "" C:\SD\installers\install.exe -i silent
[font=verdana][font=Verdana]start /w "" C:\SD\installers\FlashEXEPI18.exe -install
[/font]

 

Also i have tried this with VBS and still no luck

 

[/font]

admin computer

for /f %%a in (%~d0\SoftwareDeployment\Lists\Computers.txt) do psexec \\%%a cscript.exe //B C:\SD\scripts\start.vbs
Pause

 

 

Code on remote computer

CreateObject("Wscript.Shell").Run "C:\SD\Tabe182.exe -i silent", 0, True
CreateObject("Wscript.Shell").Run "C:\SD\installers\FlashEXEPI18.exe -install", 0, True

Edited by phudson
Posted

A few thoughts:

Try removing the echo off in the batch file - maybe there's some error happening and you're not getting to see it.

Any reason you're using the start command?

Try using cscript before the exe so any error messages get piped through to the script.

 

HTH,

 

Meldrew.

Posted

Removing the echo off didn't work. it return with

 

start /w "" C:\software\installers\install.exe -i silent

 

Maybe psexec is not made to start scripts to silent install programs. My plan was to kick off the script from each computer detaching from them and in the script was the silent install command to install the software.

 

Im at a loss....

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...