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 XX -w "remotdir" -d -i "remoteapp" XXXXXX PsExec could not start "remoteapp":
The first two characters of my password get passed in, the "=" gets eliminated, and the rest of my password is sent to the end of the command except the "^" which is also eliminated.
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. :-).)