I would like to set an environment variable on each user's machine when they log in. The environment variable should be set to be equal to the user's "Telephone number:" field that exists in their user account in Active Directory (AD). I will be implementing the code using an AD Group Policy. Is it possible to do this easily using a batch file of some sort, or will I need to use VBScript or something to perform an LDAP query (someone mentioned that the latter might be needed)? In Netware it was as easy as saying SET TIA = "%TELEPHONE_NUMBER" in the user's login script. Please include an example if you think you have the answer.