I am trying to create a script to login to a remote server and run a command. The script is as follows
plink.exe UserName@ServerIP -pw PASSWORD -batch -m PATHTOFILEWITHSCRIPT.txt
PATHTOFILEWITHSCRIPT.txt has this line
debug software restart process user-id
The script when run logs into the server but does not run the command.
Any ideas?