Whats wrong with this? Command echo f|xcopy "\\server\client\connection.RDP" "C:\Users\Public\Desktop\connection.RDP" works fine if you run it by itself.
Pass it through psexec I get Parse Error
Connecting to STC701...
Starting PsExec service on STC701...
Connecting with PsExec service on STC701...
Starting cmd on STC701...
cmd exited on STC701 with error code 4.
@ECHO ONset controlfile=computers.txtFOR /F %%L IN (%controlfile%) DO ( SET "line=%%L" psexec \\%%L cmd /c "echo f|xcopy "\\server\client\connection.RDP" "C:\Users\Public\Desktop\connection.RDP") >> allpcsresults.txt 2>&1