I saw some old posts about PsExec issues related to its output.
I have an issue related to that:
In my msbuild file I have PsExec calls. I have one scenario that always hangs when it is being execute from teamcity agent,
but it is alwas successful when I run the msbuild from command line:
I am trying to delete a file on a remote machine, and the file is opened by notepad:
C:\Deployment\PsTools\PsExec /accepteula \\MyServer -u domain\administrator -p MyPassword cmd.exe /c del /S /F /Q "c:\MyFolder\*.*"
When a text file under Myfolder is open with notepad, the process just hangs.
I tried to redirect the output (using >nul), but it didn't help.
Any Idea? (excep using RemCom :))