I need some help with a script. I need to be able to find out the domain controllers for a given domain.

The reason I need to do this is - I need to run some login scripts for some users that aren't really logged on. It's a RAS thing. So, the users don't logon via the netlogon service. I would like to be able figure out the dc's and then run their script from one of those dc's. I replicate the scripts to all of the dc's. Anybody got any suggestions.
Thanks,
Jim