All Forums >> [Scripting] >> WSH & Client Side VBScript >> Calling User names from a TXT file Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
I'm writing a script that will move inactive users from one ou to another, which I have, and its working. But now I need to change the wWWHomePage attribute of every user to the current date.
What I have is a txt file with a different user name on every line. I want to call each user (without typing in the cn) and change the wWWHomePage. Microsoft's page said this:
Set objUser = GetObject _ ("LDAP://cn=myerken,ou=management,dc=fabrikam,dc=com") objUser.Put "wWWHomePage", http://www.fabrikam.com
But in ^ that script you have to type the cn every time...