Les,

I think I understand what you are saying. I need to replace NTLOGON with the text that is currently in my user account logonscript field. Is that correct? Currently, the BATch file name is login1.bat.

Would I then replace NTLOGON with login1.bat in the UDF? You also mentioned an LDAP string. Can you give me an example?

Thanks, Matt