Register | Login
Sunday, July 20, 2008

Sections
  
About Us
  
Hosting Provided by Server Intellect
Partners
Downloads
  
 WWWCoder.com Resource Directory

ADSI: Change an Account Password
9/24/2004 8:27:19 AM

ADSI script for changing the password for an account.


' accepts the old password and new password for changing.
Sub ChangePassword(strOldPassword, strNewPassword)
On Error Resume Next
Set oUser = GetObject(strDomain & "/" & strUSer)
oUser.Password = strNewPassword
oUser.SetInfo
Set oUser = Nothing
If Err <> 1 Then
strServerError = "Password change failed!"
End If
End Sub


Page Options:
format for printing  Format for Printer
email article  Email Page
add to your favorites   Add to Favorites
How would you rate the quality of this content?
Poor - - Excellent
Comments?
Overall Rating:
Comments Left:
Left on 7/11/2005 5:50:45 PM by Anonymous
Comments: There is no password property
Left on 3/15/2005 9:01:15 AM by Anonymous
Comments: Where is the parameter for the strOldPassword used in the script?
  

 Latest Articles
  

 Latest News
  

 

Spotlight
Syndication

 


 


Digg This
 


DotNetNuke Platinum Benefactor

  
 

 Terms Of Use | Privacy Statement
 Copyright 2008 - Santry Technology Solutions, Box 172, Girard, PA 16417, (814) 774-0970