You state that the script works when you run it locally. How exactly are you doing that? Are you running the script from the server or are you running a local copy?

If you are running a local copy please update the script on the server. then verify that you scripts are replicating proper across your domain controllers.
_________________________
Home page: http://www.kixhelp.com/hb/