Jack,

I assume you are using either NT/2000 or XP desktop when you run this script.

Try running it again with KIX32.EXE SCRIPTNAME.KIX /F

The /F switch is used to flush token cache and read directly from the Server.