XP clients do not need the DLLs.

XP clients may need a GPO to wait on network... See Fast Logon Optimization.

If you hard code the DC name and that DC is down, your script would not work.

Do not wrap vars in quotes is not a question, it is a suggestion.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.