THe nature of Domain Controllers is that one cannot always guarantee which one will respond to a logon request. You can test the response with the NLTEST tool. You need to write your script in such a way as to not be affected by which DC takes up the request.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.