# Psexec action failure when calling nUnit

**URL:** https://www.finalbuilder.com/forums/t/psexec-action-failure-when-calling-nunit/2783
**Category:** Bugs
**Created:** [February 20, 2007, 6:28am UTC](https://www.finalbuilder.com/forums/t/psexec-action-failure-when-calling-nunit/2783 "2007-02-20T06:28:05Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![nelsonwolf](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/n/b9e5f3/32.png) [@nelsonwolf](https://www.finalbuilder.com/forums/u/nelsonwolf)
#### Post date: [February 20, 2007, 6:28am UTC](https://www.finalbuilder.com/forums/t/psexec-action-failure-when-calling-nunit/2783/1 "2007-02-20T06:28:05Z")

</div>

Hi,

I am using FB5's psexec action to execute a nUnit test on a remote server. If I execute the command manually from a command prompt, it executes correctly. However, during the FB5 project execution, the psexec action fails to execute the test every time. The return code is always 1, and then it's followed by a "SUCCESS" output. Here is the sample of the action:

Command line : psexec \\VM-DEV4X01 -u \*DOMAIN\*\*ACCOUNT\* -p \*PASSWORD\* -i -w "C:\Program Files\*\*\*\*\*\*\*\*" "C:\Program Files\NUnit-Net-2.0 2.2.5\bin\nunit-console.exe" "C:\Program Files\*\*\*\*\*\*\*\*\*\*.\*\*\*\*\*.UnitTests.dll"

Return code : 1  
Success.

Thanks

---

<div class="post-metadata">

### Author: ![tate](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/t/e19b73/32.png) [@tate](https://www.finalbuilder.com/forums/u/tate)
#### Post date: [February 21, 2007, 6:46am UTC](https://www.finalbuilder.com/forums/t/psexec-action-failure-when-calling-nunit/2783/2 "2007-02-21T06:46:46Z")

</div>

Hi Eugene,  
  
Do you know if the nunit-console.exe is actually started on the remote machine? We need to figure out if it’s psexec failing or nunit. psexec also seems to return strange return codes sometimes - what do you have the minimum success code set to?  
  
.t8

---

<div class="post-metadata">

### Author: ![nelsonwolf](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/n/b9e5f3/32.png) [@nelsonwolf](https://www.finalbuilder.com/forums/u/nelsonwolf)
#### Post date: [February 21, 2007, 5:55am UTC](https://www.finalbuilder.com/forums/t/psexec-action-failure-when-calling-nunit/2783/3 "2007-02-21T05:55:11Z")

</div>

I have changed the PSEXEC action to a DOS action which executes psexec directly and nUnit executes without a problem, which makes me think that there is a problem with a PSEXEC action.
