Share via


Service.ChangePassword(String, String) Method

Definition

Changes the password for the system account under which the SQL Server service is running.

public:
 void ChangePassword(System::String ^ oldPassword, System::String ^ newPassword);
public void ChangePassword (string oldPassword, string newPassword);
member this.ChangePassword : string * string -> unit
Public Sub ChangePassword (oldPassword As String, newPassword As String)

Parameters

oldPassword
String

A String value that specifies the existing password.

newPassword
String

A String value that specifies the new password.

Examples

Managing Services and Network Settings by Using WMI Provider

Applies to