troubleshooting Question

Login script question

Avatar of tdiamond
tdiamond asked on
Windows 2000
2 Comments1 Solution470 ViewsLast Modified:
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.

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros