(Jason Jing)
9/30/2002 3:37:00 AM
Hello,
If you are in Windows 2000 domain, you can change the logon Name using code
similar to following:
Set objUser = GetObject("LDAP://cn=b,cn=users;dc=vb;dc=gtec")
objUser.Put "sAMAccountName", "bbb"
objUser.Put "displayName", "bbb"
objUser.SetInfo
The code to change displayName is optional. You may also want to change sn
or givenName property of the user, so that most properties in AD users &
computers can reflect the real identity of current user.
Jason Jing
Microsoft Support
This posting is provided "AS IS", with no warranties, and confers no rights.