Sorry, I have not used plink before, so I am not sure what you need to edit to get this working. In the past there was another community member who was able to use expect, to make connections to switches and save the configs.  linux.die.net/.../expect It may be a little more to setup, but you may be able to get it to work for your needs.  [URL] Let us know
I am attempting to figure out a way to automate commands to send out to a series of switches (around 20) showing certain configs and saving the output to a file. The way I was attempting to do this was by using plink and creating a batch file for it.  Essentially it would consist of something similar to the following.  echo for /f %%i in (devices.txt) do plink %%i -l USERNAME -pw PASSWORD -v -m C:\Batch\commands.txt >> output.txt To break down the above command, it looks for my ips in the devices.txt, and does a "plink IP -l USERNAME -pw PASSWORD -v -m COMMANDS >> OUTPUT" for each. The problem I'm running into is the switches wont accept the logins, they constantly prompt for user and password again. Even when attempting to put those into the commands.txt it will not accept the input. I've googled using plink with dell switches but there isn't anything talking about this issue.So my question is, is there a way to automate this type of thing in a batch file? Or some way to automate running a series of commands to a switch via SSH? I just don't wan't to have to manually connect to each one, run my commands, exit, reconnect and repeat. I've done this on cisco switches so I thought the process would be similar but I don't understand what obstacle I'm running into here. Ideally I would like to see how to do this via SSH but at this point I'm willing to accept almost any (secure) alternative to automating sending commands to my switches.Hopefully this all makes sense.
Way to automate SSH connection/commands on a series of PowerConnect Switches, 
3400 3500 and 6200 series.