Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] Third Party Tools
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Rating: Thread Rating: 7 votes, 5.00 average. Display Modes
  #1  
Old 07-19-2004, 03:24 PM
VBuild_Rookie VBuild_Rookie is online now
Registered User
 
Join Date: 05-07-2004
Posts: 23
trying to execute a PSEXEC

I can run this from the command prompt with no prob

psexec \\ustpaqaapp001 -u newtonqa\WebSvc -p syk3s*n6wt0n cscript "c:\windows\system32\iisweb.vbs" /stop "PGNewtonAdmin"


but can not run it from the visual build program and I am using the "RUN PROGRAM" tool
Reply With Quote
  #2  
Old 07-19-2004, 03:33 PM
kevina kevina is online now
Registered User
 
Join Date: 03-27-2003
Posts: 825
Please provide more detail on 'can't run' it from Visual Build Pro. The log entry corresponding to the failure would be very helpful in understanding what didn't work.

Is the error related to not finding the psexec app? If so, the simplest solution is to use an absolute path to the executable you are invoking...
Reply With Quote
  #3  
Old 07-19-2004, 03:37 PM
VBuild_Rookie VBuild_Rookie is online now
Registered User
 
Join Date: 05-07-2004
Posts: 23
Connecting to OLD_SERVER... Starting PsExec service on OLD_SERVER... Connecting with PsExec service on OLD_SERVER... Starting cscript on OLD_SERVER...
cscript exited on OLD_SERVER with error code -2147024664.

Process completed with exit code -2147024664
Step 'Stop Web Site' failed
Reply With Quote
  #4  
Old 07-19-2004, 05:27 PM
kevina kevina is online now
Registered User
 
Join Date: 03-27-2003
Posts: 825
Not sure, it works here with this simple test of psexec on a remote WinXP machine located on a different NT domain.

Attached is the build file and the test script I ran with it. [You'll have to change the computername, user and password values from *** to run it]

A reproduceable case would be helpful for troubleshooting. I can only guess that it is some sort of rights issue, but I certainly don't know for sure...
Reply With Quote
  #5  
Old 07-20-2004, 09:35 AM
VBuild_Rookie VBuild_Rookie is online now
Registered User
 
Join Date: 05-07-2004
Posts: 23
I could not see the attachment ..where is it here on the post or email I looked in both places
Reply With Quote
  #6  
Old 07-20-2004, 09:43 AM
kevina kevina is online now
Registered User
 
Join Date: 03-27-2003
Posts: 825
Oops, after reviewing my post, I didn't attach the file again :-(

It should be attached to this post.
Attached Files
File Type: zip psexec_test.zip (703 Bytes, 2142 views)
Reply With Quote
  #7  
Old 05-09-2005, 11:22 AM
VBuild_Rookie VBuild_Rookie is online now
Registered User
 
Join Date: 05-07-2004
Posts: 23
still having issues

Ok not sure if this thread is still active if not I will repost.....
Anyway I tried your test.bld with the test.vbs it worked find
so I replaced c:\Test.vbs with c:\Windows\System32\iisweb.vbs /stop "Administration"...just to see if I can stop the Admin web site on the local pc.....I got the same error that I have been getting

"Process completed with exit code -2147024664"
Reply With Quote
  #8  
Old 05-11-2005, 08:53 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
That is odd. In my testing, it succeeds the first time but fails with that error afterwards. One workaround is to redirect the command's output to a file and read the file output (instead of reading stdout). See the attached sample.
Attached Files
File Type: bld test2.bld (497 Bytes, 2024 views)
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 08:36 AM.


Copyright © 1999-2023 Kinook Software, Inc.