Rename
(
NewName As String
);
Parameters
[in] String NewName
New name for a user.
Description
Renames a user with the specified name.
Remarks
This method can also be used to rename local users.
Example
Dim User As IADsUser
Set User = GetObject("NTDS://YourDomainName/UserName")
User.Rename "NewUserName"
See Also