Using SetInfo (Visual Basic)

This code can be found in Chapter 4 of Managing Enterprise Active Directory Services

Purchase XP Cookbook or Networking Recipes for only $25 plus shipping! While supplies last.

Find out how to download all of the Visual Basic code from this site.

'# ----------------------------------------------------------------
'# From the book "Managing Enterprise Active Directory Services"
'# ISBN: 0-672-32125-4
'# ----------------------------------------------------------------
Dim User As IADsUser
Set User = GetObject("LDAP://cn=jdoe,cn=Users,dc=xyz,dc=com")
User.Description = "EmpId:7261016, Engineering Manager, New York"
User.Profile = "\\HomeDS01\jdoe")
User.FullName = "John Doe"
'Only the cache has been updated to this point.
'No changes have been committed until SetInfo is called:
User.SetInfo

This code has been viewed 1784 times.

New from the creators of TechTasks.com: StatSheet.com