You specified that it be run as a login script. Thus, I assumed that whoever runs the loginscript on a computer that then that particular computer's administrative password be changed.

Otherwise, please provide a more detailed description of the problem.
_________________________
There are two types of vessels, submarines and targets.