how to change my password on remote maschines?

Hi,

i do have a user on a lot of system. And I have to change the password for this user on all systems. How could I do this using a (windows) script?
At the moment I do have a .bat file which calls putty for each server, but I have to enter
passwd
old password
new password
new password
exit
on every server.
There is no way to use certificates.. and I am not root, so
echo user:password | /usr/sbin/chpasswd
or
echo -e "newpasswd\nnewpasswd" | (passwd user)
does not work for me (as I could see).

Anybody any idea how to change the password for my remote user running a windows script.
At the moment I am testing with expect and ActiveTcl, but I am not sure if this leads to what I want, because ActiveTcl must be installed...
I hope for a batch file (where to enter user and (old/new) password) starting plink on a list of servers and changes the password.

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

You have to set up your public/private keypair so that you are not prompted for password when your windows script connects. Read the documentation of how to do this.
You can also use putty the same way...

write a shell script on the Linux machine to change password. Write the script to take the username and the new password as arguments.
use the following to execute the script on linux to change password.
rsync --rsync-path=PROGRAM user new_passwd

I think I was misunderstood ... I am not really searching for a tool to start a linux script (this I could do with plink). I am searching for a possibility to change the (my) password with a script if I am not root.

In Linux, if you are not the root user, you have to be interactive and there is no way around it. You are not the root then you cannot use the non-interactive command that I sent you because that requires you to be root (non-root enabled with sudo access) no matter user password you want to change. You want to automate it and that too interactively and the only way around that is Expect or Auto Expect.

Oh sorry I wanted to achieve your main objective of changing password on Linux machines without any manual intervention i.e. using a windows script. Also please note it is not necessary to be root to execute a script on Linux machine.

I am trying to use the expect from activeTCL and a mix from the original passmass script from (unix) expect and the remote.tcl from the examples of activeTCL-expect to get what I want.

Autoexpect cant be used, because it is not available in windows.
If the script will work I am going to try to complie this to an executable which can be accessed from a batch script...
maybe in some years I will see if this works...