Using PSEXEC to call CMD for a DEL command on a remote computer through a batch script.
PSEXEC \\hostname -u username -p password CMD /C DEL /Q /F C:\Folder\File.txt
The script pauses with a new CMD window popped up connected to the remote machine.
Why will psexec not automatically pass my DEL command via CMD?
The command works fine when sent directly through the CLI and not in a batch script