Computing.Net > Forums > Programming > using psexec to start batch job

Computing.Net: Over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to sign up now, it's free!

using psexec to start batch job

Reply to Message Icon

Original Message
Name: AllenD
Date: November 9, 2007 at 09:12:33 Pacific
Subject: using psexec to start batch job
OS: Win
CPU/Ram: 512
Model/Manufacturer: Dell
Comment:

Hello, I am trying to exe SP2 on remote machine and I am using psexec. I have created a batch that fires up dotnetfx.exe when it is clicked manually and it works perfectly. However when I use psexec to start that batch on remaote pc it just hanges...I have copied that batch on temp file on that machine. I have used psexec to install java and SVG viewer w/o any problem on remote pc's for some reason I can't get dotnetfx.exe to work. can anyone tell me what is that i am doing wrong..I have full access to that pc.Thx
H:\>psexec \\nb34426 -d "c:\temp\dotnetfx.exe"



Report Offensive Message For Removal


Response Number 1
Name: Razor2.3
Date: November 9, 2007 at 09:22:51 Pacific
Reply: (edit)

Try adding a /Q to the end of the line?


Report Offensive Follow Up For Removal

Response Number 2
Name: AllenD
Date: November 9, 2007 at 09:29:34 Pacific
Reply: (edit)

Razor2.3
I used /q as you said and now I get

c:\temp\netframe.exe exited on nb34426 with error code 14049.


Report Offensive Follow Up For Removal

Response Number 3
Name: Razor2.3
Date: November 9, 2007 at 09:53:57 Pacific
Reply: (edit)

Alright, I checked the .NET 2.0 redistributable, and while it lists /Q for quiet install, it ignores the switch. You could use the psexec -i option, but that kinda defeats the purpose of remote installing, as it would require user intervention.

Your other option would be to unpack the .EXE, and go directly to the .MSI. To unpack, use:
dotnetfx /t:c:\dotnetfxUnpacked /c
Then you can use psexec to run C:\Windows\System32\msiexec.exe c:\dotnetfxUnpacked\netfx.msi /quiet /log c:\dotNetLog.txt

I'm still not sure if that'll work, or if the .MSI requires some information the install.exe provides. I doubt I'll find out, as I'm running in 64-bit, and I downloaded the x86 package.


Report Offensive Follow Up For Removal

Response Number 4
Name: AllenD
Date: November 9, 2007 at 10:18:43 Pacific
Reply: (edit)

Thank you..Razor2.3 I greatly appreciate you helping out. I will give it a try and see if that works... Thank you as always!


Report Offensive Follow Up For Removal







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home








Do you have your own blog?

Yes
No
I did before
I will soon


View Results

Poll Finishes In 4 Days.
Discuss in The Lounge
Poll History




Data Recovery Software