Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

SPUtility.ChangeAccountPassword method

Changes an account password for the specified SharePoint site.

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public static void ChangeAccountPassword(
	SPWeb web,
	string loginName,
	string oldPassword,
	string newPassword
)

Parameters

web
Type: Microsoft.SharePoint.SPWeb

An Microsoft.SharePoint.SPWeb object that represents the site.

loginName
Type: System.String

A string that contains the user name of the user.

oldPassword
Type: System.String

A string that contains the old password.

newPassword
Type: System.String

A string that contains the new password.

Show:
© 2015 Microsoft