I spent the best part of this week on doing remote deployments to a jboss server running on Windows. Don’t ask why I am doing this. But there is an intersting observation about psexec. It doesn’t work reliably when called with redirected io, e.g. from the awesome TeamCity server.
Lesson learnt: windows is not built for relentless automation.