Quantcast
Channel: Sysinternals Forums
Viewing all articles
Browse latest Browse all 10386

PsTools : msiexec using Psexec in remote computer

$
0
0
Author: arulprakash88
Subject: msiexec using Psexec in remote computer
Posted: 27 September 2014 at 8:44am

I'm trying to install a msi package in a remote computer. I tried searching for my issue in the forum but couldn't find it.I'm invoking psexec using a java program which uses "ProcessBuilder" to build the command and start the process using "Process" class

this is how my sample output looks like

Invoking command : C:\Staging\PSTools\psexec.exe \\10.31.67.178 /ACCEPTEULA -u abc.com\administrator -p 123$ msiexec /qn /i "C:\Staging\123.msi" /lv "C:\Staging\installLog.txt"
Stdout: 
Stdout: PsExec v2.0 - Execute processes remotely
Stdout: Copyright (C) 2001-2013 Mark Russinovich
Stdout: Sysinternals - www.sysinternals.com
Stdout: 
Stdout: The filename, directory name, or volume label syntax is incorrect.
Stdout: Connecting to 10.31.67.178...
Stdout: 
Stdout: 
Stdout: Starting PSEXESVC service on 10.31.67.178...
Stdout: 
Stdout: 
Stdout: Connecting with PsExec service on 10.31.67.178...
Stdout: 
Stdout: 
Stdout: Starting msiexec /qn /i C:\Staging\123.msi /lv C:\Staging\installLog.txt on 10.31.67.178...
Stdout: 
Stdout: 
Stdout: 
Stdout: 
Stdout: 
Stdout: 
Stdout: PsExec could not start msiexec /qn /i C:\Staging\123.msi /lv C:\Staging\installLog.txt on 10.31.67.178:

Now, when I run the same command from a cmd prompt, the installation is successful. I tried removing quotes also, but didn't work. 

Viewing all articles
Browse latest Browse all 10386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>