I'm not sure I follow your question, but here is a script to look at...
changepass automate password changes on multiple systems
I'm not sure I follow your question, but here is a script to look at...
changepass automate password changes on multiple systems