ADSI: Change Account Full Name
9/24/2004 8:20:55 AM
ADSI script to change the full name property of an account.
Sub ChangeAccountFullName(strFullName) On Error Resume Next Set oUser = GetObject(strDomain & "/" & strUser) oUser.FullName = strFullName oUser.SetInfo Set oUser = Nothing If Err <> 0 Then strServerError = "Full name change failed!" End If End Sub
|