A quick and dirty way to send a bunch of commands to any ssh device (in my case, Cisco appliances)…

  • create a plain old batch file with commands echoed inside:
  • execute the batch, piping its output to plink.exe (putty command link ssh client):
    c:\> commands.bat | plink -ssh -l username -pw password  11.22.33.44