T-SQL will not do the trick, the quickest way is to open up the packages and execute some VB code from an ActiveX task, assuming the passwords you are talking about are in the conncetion objects.
If you are talking about package execution passwords, that could be done in a similar manner.