We're running following command line
C:\Util\SysinternalsSuite\psexec \\10.120.36.219 -u localhost\account -p Password -h -w C:\Temp\FOLDER C:\Temp\FOLDER\postinstallphase1.cmd
Where the postinstallphase1.cmd
script contains a set of commands that temporarily break the connection to the target server. Due to these commands, the psexec
gets stuck and the only way to get command prompt is press enter in cmd console.
This is a problem for us since we plan to use this command in an unattended solution.
We've tried as well to use the '-d' argument but for unknown reason if we run the command with this argument the cmd script does not behave as expected (as it does without -d).
Is there any way to simulate someone pressing the enter key?