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

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

using psexec to start batch job

Reply to Message Icon

Name: AllenD
Date: November 9, 2007 at 09:12:33 Pacific
OS: Win
CPU/Ram: 512
Product: 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"




Sponsored Link
Ads by Google

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

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


0

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

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

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


0

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

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.


0

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

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!


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Delete words between two ... Dao for Vista



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


Sponsored links

Ads by Google


Results for: using psexec to start batch job

Batch file to start and stop servic www.computing.net/answers/programming/batch-file-to-start-and-stop-servic/15882.html

Batch to edit Batch www.computing.net/answers/programming/batch-to-edit-batch/16925.html

Sending varible to a batch from vbs www.computing.net/answers/programming/sending-varible-to-a-batch-from-vbs/5344.html