I am looping through a file reading user names and trying to modiy the
telephone notes for each account using the below and can't get it to work?
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFile = objFSO.OpenTextFile("c:\dictionary.txt", 1)
Do While objFile.AtEndOfStream = False
strName = objFile.ReadLine
strContainer = "CN=Users,DC=remote,DC=agilent,DC=com"
Set objItem = GetObject("LDAP://CN=" & strName & "," & strContainer)
End If
On Error Resume Next
Const ADS_PROPERTY_UPDATE = 2
objUser.Put "info", "Informational Text"
objUser.PutEx ADS_PROPERTY_UPDATE, _
"info", Array("Informational Text")
objUser.SetInfo
Loop