# Passing command-line params to Execute Programs task- mangling my password

**URL:** https://www.finalbuilder.com/forums/t/passing-command-line-params-to-execute-programs-task-mangling-my-password/393
**Category:** Discussion
**Created:** [March 12, 2007, 7:54am UTC](https://www.finalbuilder.com/forums/t/passing-command-line-params-to-execute-programs-task-mangling-my-password/393 "2007-03-12T07:54:08Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [March 12, 2007, 7:54am UTC](https://www.finalbuilder.com/forums/t/passing-command-line-params-to-execute-programs-task-mangling-my-password/393/1 "2007-03-12T07:54:08Z")

</div>

I am using an Execute programs task to call a batch file that starts psexec on a remote machine. I need to specify a username and password for psexec. This was working fine until I switched my password today.

My password is in this format: XX=XXXX^XX

Finalbuilder told me that the password was passed correctly to the task, but psexec gets a login error like this:

C:\\>psexec \\SERVER -u DOMAIN\owen.manske -p&nbsp;XX -w "remotdir" -d -i "remoteapp"&nbsp;&nbsp;XXXXXX  
PsExec could not start "remoteapp":

The first two characters of my password get passed in, the&nbsp;"=" gets eliminated, and the rest of my password is sent to the end of the command except the "^" which is also eliminated.

Any ideas on this? This happens in FB4 and FB5.

&nbsp;

---

<div class="post-metadata">

### Author: ![angus](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/a/b3f665/32.png) [@angus](https://www.finalbuilder.com/forums/u/angus)
#### Post date: [March 13, 2007, 12:31pm UTC](https://www.finalbuilder.com/forums/t/passing-command-line-params-to-execute-programs-task-mangling-my-password/393/2 "2007-03-13T12:31:06Z")

</div>

Hi Owen,  
  
Is there a percent sign in your password? If so, you’ll need to escape it as %%.  
  
Regards,  
  
Angus

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [March 14, 2007, 3:22am UTC](https://www.finalbuilder.com/forums/t/passing-command-line-params-to-execute-programs-task-mangling-my-password/393/3 "2007-03-14T03:22:27Z")

</div>

No&nbsp;% signs. The only special characters are =, #, ^&nbsp;

---

<div class="post-metadata">

### Author: ![angus](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/a/b3f665/32.png) [@angus](https://www.finalbuilder.com/forums/u/angus)
#### Post date: [March 15, 2007, 12:51pm UTC](https://www.finalbuilder.com/forums/t/passing-command-line-params-to-execute-programs-task-mangling-my-password/393/4 "2007-03-15T12:51:39Z")

</div>

Hi Owen,  
  
Hashes are only special in FinalBuilder when they are followed by an open parenthesis, ie #(. The other characters should be OK.  
  
If you add some Echo statements to your Batch File, can you confirm that the password string is being passed to the batch file properly? It’s possible either cmd.exe or psexec is doing some escaping of it’s own. Double-quoting the username and password strings may solve the problem.  
  
(BTW, have you looked at the new PsExec action in FinalBuilder 5. :-).)  
  
Regards,  
  
Angus
